This commit is contained in:
ldolse 2011-01-14 22:32:03 +08:00
parent 4893fa5d3a
commit 80ed2e7d4e

View File

@ -299,8 +299,7 @@ class PreProcessor(object):
blanklines = blankreg.findall(html) blanklines = blankreg.findall(html)
lines = linereg.findall(html) lines = linereg.findall(html)
blanks_between_paragraphs = False blanks_between_paragraphs = False
if getattr(self.extra_opts, 'delete_blank_paragraphs', False): print "delete blank paragraphs is "+str(getattr(self.extra_opts, 'delete_blank_paragraphs', True))
print "configured to delete blank paragraphs"
if len(lines) > 1: if len(lines) > 1:
self.log("There are " + unicode(len(blanklines)) + " blank lines. " + self.log("There are " + unicode(len(blanklines)) + " blank lines. " +
unicode(float(len(blanklines)) / float(len(lines))) + " percent blank") unicode(float(len(blanklines)) / float(len(lines))) + " percent blank")