mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Append a \n to each saved line of gcode otherwise the whole file ends up as one line!
This commit is contained in:
parent
b101ddcf8d
commit
b7b48927c2
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ class FlavorParser:
|
||||||
current_line = 0
|
current_line = 0
|
||||||
for line in stream.split("\n"):
|
for line in stream.split("\n"):
|
||||||
file_lines += 1
|
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:
|
if not self._is_layers_in_file and line[:len(self._layer_keyword)] == self._layer_keyword:
|
||||||
self._is_layers_in_file = True
|
self._is_layers_in_file = True
|
||||||
# stream.seek(0)
|
# stream.seek(0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue