This commit is contained in:
Kovid Goyal 2008-06-23 13:46:11 -07:00
parent b787f041d3
commit 73882d9dec

View File

@ -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) self.line_break()
if len(srcs) > 1: last = srcs[-1]
self.line_break() if len(last):
append_text(last)
def line_break(self): def line_break(self):
self.current_para.append(CR()) self.current_para.append(CR())