mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
TXT Input: Heuristic processing enables smarten punctuation.
This commit is contained in:
parent
ad32cd1d72
commit
8eddfd7e78
@ -114,6 +114,7 @@ class TXTInput(InputFormatPlugin):
|
|||||||
if options.formatting_type == 'heuristic':
|
if options.formatting_type == 'heuristic':
|
||||||
setattr(options, 'enable_heuristics', True)
|
setattr(options, 'enable_heuristics', True)
|
||||||
setattr(options, 'unwrap_lines', False)
|
setattr(options, 'unwrap_lines', False)
|
||||||
|
setattr(options, 'smarten_punctuation', True)
|
||||||
|
|
||||||
# Reformat paragraphs to block formatting based on the detected type.
|
# Reformat paragraphs to block formatting based on the detected type.
|
||||||
# We don't check for block because the processor assumes block.
|
# We don't check for block because the processor assumes block.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user