mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-18 00:26:41 +08:00
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:
commit
2df95b6e35
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user