mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 17:14:41 +01:00
Fix #573
This commit is contained in:
parent
e8f590402d
commit
3bf15427c3
1 changed files with 2 additions and 2 deletions
|
|
@ -836,8 +836,8 @@ def append_text(src):
|
|||
|
||||
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…
Reference in a new issue