mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
[SNBOutput] Handle <BR> tag to be a new line in output.
This commit is contained in:
parent
424e69f599
commit
e89a58d709
@ -222,6 +222,9 @@ class SNBMLizer(object):
|
|||||||
if tag == 'img':
|
if tag == 'img':
|
||||||
text.append(u'%s%s' % (CALIBRE_SNB_IMG_TAG, ProcessFileName(elem.attrib['src'])))
|
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.
|
# Process tags that contain text.
|
||||||
if hasattr(elem, 'text') and elem.text:
|
if hasattr(elem, 'text') and elem.text:
|
||||||
text.append(elem.text)
|
text.append(elem.text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user