diff --git a/src/calibre/ebooks/conversion/utils.py b/src/calibre/ebooks/conversion/utils.py index bfb23c45aa..286fad1aaa 100644 --- a/src/calibre/ebooks/conversion/utils.py +++ b/src/calibre/ebooks/conversion/utils.py @@ -299,7 +299,7 @@ class PreProcessor(object): blanklines = blankreg.findall(html) lines = linereg.findall(html) blanks_between_paragraphs = False - print "delete blank paragraphs is "+str(getattr(self.extra_opts, 'delete_blank_paragraphs', True)) + print "delete blank paragraphs is "+str(getattr(self.extra_opts, 'delete_blank_paragraphs', False)) if len(lines) > 1: self.log("There are " + unicode(len(blanklines)) + " blank lines. " + unicode(float(len(blanklines)) / float(len(lines))) + " percent blank") diff --git a/src/calibre/ebooks/pdb/input.py b/src/calibre/ebooks/pdb/input.py index b0e7746c7e..de210e0a6d 100644 --- a/src/calibre/ebooks/pdb/input.py +++ b/src/calibre/ebooks/pdb/input.py @@ -32,8 +32,3 @@ class PDBInput(InputFormatPlugin): opf = reader.extract_content(os.getcwd()) return opf - - def heuristics(self, options, html): - self.options = options - preprocessor = PreProcessor(self.options, log=getattr(self, 'log', None)) - return preprocessor(html)