TXT Output: Convert <hr> to scene break marker.

This commit is contained in:
Kovid Goyal 2011-01-10 17:03:48 -07:00
commit 187331af81

View File

@ -219,6 +219,10 @@ class TXTMLizer(object):
if tag in SPACE_TAGS:
text.append(u' ')
# Scene breaks.
if tag == 'hr':
text.append('\n\n* * *\n\n')
# Process tags that contain text.
if hasattr(elem, 'text') and elem.text:
text.append(elem.text)