Assumtion was that the first and last lines of examples are always
blank. In 2021/06 the example is only one line. It has no blank line at
the end so the example was deleted by the script.
Changed:
The script will now check if the line is actually blank before deleting
it. Requires that the indentation is removed beforehand.
Retain blank lines in code examples.
The script removed all blank lines from code examples. This is not
always desired as there might be important blank lines inside the code
block. The change targets specifically the starting and ending blank line
of the examples and removes them.
Extended the helper script to fetch the puzzle description. It will be
put into a README.md. The input will now be stored into a input folder
along with examples extracted from the puzzle description.
Adjusted the parsing of the day from the folder name. It will now take
any number that appears in the folder name. Previously: folder name must
be a number, leading zeros will be stripped (e.g 01, 02). Now: there can
be other characters as well (e.g day01, day02)