This commit is contained in:
ldolse 2011-02-06 19:28:15 +08:00
parent 30212404de
commit 9088903f4c

View File

@ -115,7 +115,6 @@ class TXTInput(InputFormatPlugin):
elif options.paragraph_type == 'print': elif options.paragraph_type == 'print':
txt = separate_paragraphs_print_formatted(txt) txt = separate_paragraphs_print_formatted(txt)
elif options.paragraph_type == 'unformatted': elif options.paragraph_type == 'unformatted':
print "unwrapping lines using heuristics"
from calibre.ebooks.conversion.utils import HeuristicProcessor from calibre.ebooks.conversion.utils import HeuristicProcessor
# unwrap lines based on punctuation # unwrap lines based on punctuation
docanalysis = DocAnalysis('txt', txt) docanalysis = DocAnalysis('txt', txt)