MOBI Output: Add support for <q> tag

This commit is contained in:
Kovid Goyal 2010-11-05 18:52:32 -06:00
parent 7774eb6916
commit 43103496ab

View File

@ -386,6 +386,15 @@ class MobiMLizer(object):
for attr in ('rowspan', 'colspan','width','border','scope'):
if attr in elem.attrib:
istate.attrib[attr] = elem.attrib[attr]
if tag == 'q':
t = elem.text
if not t:
t = ''
elem.text = u'\u201c' + t
t = elem.tail
if not t:
t = ''
elem.tail = u'\u201d' + t
text = None
if elem.text:
if istate.preserve: