[SNBOutput] Handle <BR> tag to be a new line in output.

This commit is contained in:
Li Fanxi 2010-10-11 16:19:46 +08:00
parent 424e69f599
commit e89a58d709

View File

@ -222,6 +222,9 @@ class SNBMLizer(object):
if tag == 'img':
text.append(u'%s%s' % (CALIBRE_SNB_IMG_TAG, ProcessFileName(elem.attrib['src'])))
if tag == 'br':
text.append(u'\n\n')
# Process tags that contain text.
if hasattr(elem, 'text') and elem.text:
text.append(elem.text)