TXT Output: Fix an issue where the br to space conversion was not being handled properly.

This commit is contained in:
Kovid Goyal 2010-12-04 09:52:03 -07:00
commit c1c62e5fd3

View File

@ -179,8 +179,7 @@ class TXTMLizer(object):
text.append(u'\n\n') text.append(u'\n\n')
if tag in SPACE_TAGS: if tag in SPACE_TAGS:
if not end.endswith('u ') and hasattr(elem, 'text') and elem.text: text.append(u' ')
text.append(u' ')
# Process tags that contain text. # Process tags that contain text.
if hasattr(elem, 'text') and elem.text: if hasattr(elem, 'text') and elem.text: