TXT Output: Handle scene breaks defined by margin-top in the css of the OEB.

This commit is contained in:
John Schember 2011-01-30 10:00:44 -05:00
parent 5aef8ab40a
commit 76837bbd7e

View File

@ -222,6 +222,8 @@ class TXTMLizer(object):
# Scene breaks.
if tag == 'hr':
text.append('\n\n* * *\n\n')
elif style['margin-top']:
text.append('\n\n' + '\n' * round(style['margin-top']))
# Process tags that contain text.
if hasattr(elem, 'text') and elem.text: