summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lulua/text.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lulua/text.py b/lulua/text.py
index 1d46af8..f988c2a 100644
--- a/lulua/text.py
+++ b/lulua/text.py
@@ -261,8 +261,9 @@ def writeWorker (layout, sourceFunc, inq, outq):
# extract (can be multiple items per source)
for text in sourceFunc (item):
- # map chars
- text = mapChars (text, charMap)
+ # map chars; make sure we’re using unix line endings, which is
+ # only one character
+ text = mapChars (text, charMap).replace ('\r\n', '\n')
# init a new writer for every item
w = Writer (layout)