From b3ec6480600acb0c701df9fc309abb37d6e3fa81 Mon Sep 17 00:00:00 2001 From: John Schember Date: Wed, 26 Jan 2011 20:17:09 -0500 Subject: [PATCH] TXT Input: Don't preserve spaces in heuristic processing --- src/calibre/ebooks/txt/input.py | 1 - src/calibre/ebooks/txt/processor.py | 1 - 2 files changed, 2 deletions(-) diff --git a/src/calibre/ebooks/txt/input.py b/src/calibre/ebooks/txt/input.py index 6ec1edb65c..2399e599ae 100644 --- a/src/calibre/ebooks/txt/input.py +++ b/src/calibre/ebooks/txt/input.py @@ -83,7 +83,6 @@ class TXTInput(InputFormatPlugin): setattr(options, 'markup_chapter_headings', True) setattr(options, 'italicize_common_cases', True) setattr(options, 'fix_indents', True) - setattr(options, 'preserve_spaces', True) setattr(options, 'delete_blank_paragraphs', True) setattr(options, 'format_scene_breaks', True) setattr(options, 'dehyphenate', True) diff --git a/src/calibre/ebooks/txt/processor.py b/src/calibre/ebooks/txt/processor.py index 9d6868467e..926e9a8dd6 100644 --- a/src/calibre/ebooks/txt/processor.py +++ b/src/calibre/ebooks/txt/processor.py @@ -91,7 +91,6 @@ def normalize_line_endings(txt): return txt def separate_paragraphs_single_line(txt): - #txt = re.sub(u'(?<=.)\n(?=.)', '\n\n', txt) txt = txt.replace('\n', '\n\n') return txt