Merge pull request #3655 from smartavionics/mb-fix-gcode-reader-missing-newlines

Append a \n to each saved line of gcode otherwise the whole file ends up as one line!
This commit is contained in:
Diego Prado Gesto 2018-04-12 11:30:16 +02:00 committed by GitHub
commit 2df95b6e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)