mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 15:23:39 +02:00
Fix #808
This commit is contained in:
parent
b787f041d3
commit
73882d9dec
1 changed files with 6 additions and 5 deletions
|
|
@ -870,11 +870,12 @@ def append_text(src):
|
|||
append_text(src)
|
||||
else:
|
||||
srcs = src.split('\n')
|
||||
for src in srcs:
|
||||
if src:
|
||||
append_text(src)
|
||||
if len(srcs) > 1:
|
||||
self.line_break()
|
||||
for src in srcs[:-1]:
|
||||
append_text(src)
|
||||
self.line_break()
|
||||
last = srcs[-1]
|
||||
if len(last):
|
||||
append_text(last)
|
||||
|
||||
def line_break(self):
|
||||
self.current_para.append(CR())
|
||||
|
|
|
|||
Loading…
Reference in a new issue