From 91f6d6c46ba45a57b0a1406a92b0e55cb98757d3 Mon Sep 17 00:00:00 2001 From: John Schember Date: Sat, 6 Jun 2009 07:34:01 -0400 Subject: [PATCH] Text output cleanup. --- src/calibre/ebooks/txt/writer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/txt/writer.py b/src/calibre/ebooks/txt/writer.py index 7ec561a195..b31f325c3b 100644 --- a/src/calibre/ebooks/txt/writer.py +++ b/src/calibre/ebooks/txt/writer.py @@ -118,8 +118,9 @@ class TxtWriter(object): return text def unix_newlines(self, text): - text = text.replace('\r\n', '\n') - text = text.replace('\r', '\n') + text = text.replace('\r\n', ' ') + text = text.replace('\n', ' ') + text = text.replace('\r', ' ') return text