From 4fd784a9c17bf6f286819656ce2baf82f9f9bada Mon Sep 17 00:00:00 2001 From: ldolse Date: Tue, 18 Jan 2011 20:28:53 +0800 Subject: [PATCH] ... --- src/calibre/ebooks/conversion/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/calibre/ebooks/conversion/utils.py b/src/calibre/ebooks/conversion/utils.py index 5984723aa3..bcc6f5a236 100644 --- a/src/calibre/ebooks/conversion/utils.py +++ b/src/calibre/ebooks/conversion/utils.py @@ -496,12 +496,9 @@ class HeuristicProcessor(object): if hardbreaks or unwrap_factor < 0.4: self.log.debug("Unwrapping required, unwrapping Lines") # Dehyphenate with line length limiters - dehyphenator = Dehyphenator() + dehyphenator = Dehyphenator(self.extra_opts.verbose, self.log) html = dehyphenator(html,'html', length) html = self.punctuation_unwrap(length, html, 'html') - # unwrap remaining hyphens based on line length, but only remove if there is a match - dehyphenator = Dehyphenator(self.extra_opts.verbose, self.log) - html = dehyphenator(html,'html_cleanup', length) if getattr(self.extra_opts, 'dehyphenate', False): # dehyphenate in cleanup mode to fix anything previous conversions/editing missed