Commit bb1eb7af authored by Guillaume Seguin's avatar Guillaume Seguin

Strip extra whitespace from lines after stripping gcode comments

parent 00a4373c
......@@ -552,7 +552,7 @@ class printcore():
return
# Strip comments
tline = gcoder.gcode_strip_comment_exp.sub("", tline)
tline = gcoder.gcode_strip_comment_exp.sub("", tline).strip()
if tline:
self._send(tline, self.lineno, True)
self.lineno += 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment