The artificial line-breaks for the 80-character limit were taken along with the read-by-line of reading the g-code file, apparently. This obviously produced errors in the config parser.
Contributes to issue CURA-34.
This code was more or less copied from the writer. It requires regular expressions and the application, but I didn't take the imports along.
Contributes to issue CURA-34.