mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
This commit is contained in:
parent
04ca5c26b4
commit
ad339ea8f5
@ -838,8 +838,8 @@ class HTMLConverter(object):
|
|||||||
|
|
||||||
if collapse_whitespace:
|
if collapse_whitespace:
|
||||||
src = re.sub(r'\s{1,}', ' ', src)
|
src = re.sub(r'\s{1,}', ' ', src)
|
||||||
if len(self.previous_text) != len(self.previous_text.rstrip(u' \n\r')):
|
if len(self.previous_text) != len(self.previous_text.rstrip(u' \n\r\t')):
|
||||||
src = src.lstrip(u' \n\r')
|
src = src.lstrip(u' \n\r\t')
|
||||||
if len(src):
|
if len(src):
|
||||||
self.previous_text = src
|
self.previous_text = src
|
||||||
append_text(src)
|
append_text(src)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user