mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
TXT Output: Convert <hr> to scene break marker.
This commit is contained in:
commit
187331af81
@ -219,6 +219,10 @@ class TXTMLizer(object):
|
|||||||
if tag in SPACE_TAGS:
|
if tag in SPACE_TAGS:
|
||||||
text.append(u' ')
|
text.append(u' ')
|
||||||
|
|
||||||
|
# Scene breaks.
|
||||||
|
if tag == 'hr':
|
||||||
|
text.append('\n\n* * *\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