mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
TXT Input: Don't preserve spaces in heuristic processing
This commit is contained in:
parent
8bd3c8d53e
commit
b3ec648060
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user