Append a \n to each saved line of gcode otherwise the whole file ends up as one line!

This commit is contained in:
Mark Burton 2018-04-11 17:08:55 +01:00
parent 56e80bb518
commit da1790fd37

View file

@ -309,7 +309,7 @@ class FlavorParser:
current_line = 0
for line in stream.split("\n"):
file_lines += 1
gcode_list.append(line)
gcode_list.append(line + "\n")
if not self._is_layers_in_file and line[:len(self._layer_keyword)] == self._layer_keyword:
self._is_layers_in_file = True
# stream.seek(0)