From 721b502e381a8abf6e843f629164823450e4b16b Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Wed, 18 Apr 2018 18:34:48 -0500 Subject: [PATCH] Fixed bug where newlines were stripped by accident by putting them back in. --- smoothie-stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smoothie-stream.py b/smoothie-stream.py index d46f1334..c3b50176 100644 --- a/smoothie-stream.py +++ b/smoothie-stream.py @@ -53,7 +53,7 @@ for line in f: line = re.sub("[ ]*;.*", '', line) # remove everything after ; line = line.strip() #send only the bare necessity. if len(line) > 0: - tn.write(line) + tn.write(line + "\n") linecnt+=1 rep= tn.read_eager() okcnt += rep.count("ok") -- 2.20.1