From 762246d0fd716b8dc219f2e92ca2371d28117708 Mon Sep 17 00:00:00 2001 From: Sam Boling Date: Sat, 19 Oct 2019 22:03:07 -0600 Subject: [PATCH] ensure crlf line endings when uploading --- src/druid/crowlib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/druid/crowlib.py b/src/druid/crowlib.py index 53bbdb0..36b3f2c 100644 --- a/src/druid/crowlib.py +++ b/src/druid/crowlib.py @@ -35,7 +35,8 @@ def writelines(writer, file): with open(file) as d: lua = d.readlines() for line in lua: - writer(line.encode()) # convert text to bytes + # add crlf and convert text to bytes + writer((line.rstrip() + '\r\n').encode()) time.sleep(0.002) # fix os x crash? def upload(writer, printer, file):