mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #573
This commit is contained in:
parent
e8f590402d
commit
3bf15427c3
@ -836,8 +836,8 @@ class HTMLConverter(object):
|
||||
|
||||
if collapse_whitespace:
|
||||
src = re.sub(r'\s{1,}', ' ', src)
|
||||
if len(self.previous_text) != len(self.previous_text.rstrip()):
|
||||
src = src.lstrip()
|
||||
if len(self.previous_text) != len(self.previous_text.rstrip(u' \n\r')):
|
||||
src = src.lstrip(u' \n\r')
|
||||
if len(src):
|
||||
self.previous_text = src
|
||||
append_text(src)
|
||||
|
Loading…
x
Reference in New Issue
Block a user