mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
4893fa5d3a
commit
80ed2e7d4e
@ -299,8 +299,7 @@ class PreProcessor(object):
|
||||
blanklines = blankreg.findall(html)
|
||||
lines = linereg.findall(html)
|
||||
blanks_between_paragraphs = False
|
||||
if getattr(self.extra_opts, 'delete_blank_paragraphs', False):
|
||||
print "configured to delete blank paragraphs"
|
||||
print "delete blank paragraphs is "+str(getattr(self.extra_opts, 'delete_blank_paragraphs', True))
|
||||
if len(lines) > 1:
|
||||
self.log("There are " + unicode(len(blanklines)) + " blank lines. " +
|
||||
unicode(float(len(blanklines)) / float(len(lines))) + " percent blank")
|
||||
|
Loading…
x
Reference in New Issue
Block a user