mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #808
This commit is contained in:
parent
b787f041d3
commit
73882d9dec
@ -870,11 +870,12 @@ class HTMLConverter(object, LoggingInterface):
|
|||||||
append_text(src)
|
append_text(src)
|
||||||
else:
|
else:
|
||||||
srcs = src.split('\n')
|
srcs = src.split('\n')
|
||||||
for src in srcs:
|
for src in srcs[:-1]:
|
||||||
if src:
|
|
||||||
append_text(src)
|
append_text(src)
|
||||||
if len(srcs) > 1:
|
|
||||||
self.line_break()
|
self.line_break()
|
||||||
|
last = srcs[-1]
|
||||||
|
if len(last):
|
||||||
|
append_text(last)
|
||||||
|
|
||||||
def line_break(self):
|
def line_break(self):
|
||||||
self.current_para.append(CR())
|
self.current_para.append(CR())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user