From b7b48927c2da21a8877bb8c242f46cae6c32216a Mon Sep 17 00:00:00 2001 From: Mark Burton Date: Wed, 11 Apr 2018 17:08:55 +0100 Subject: [PATCH] Append a \n to each saved line of gcode otherwise the whole file ends up as one line! --- plugins/GCodeReader/FlavorParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GCodeReader/FlavorParser.py b/plugins/GCodeReader/FlavorParser.py index 00cbbacacf..b8af673cd4 100644 --- a/plugins/GCodeReader/FlavorParser.py +++ b/plugins/GCodeReader/FlavorParser.py @@ -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)