mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI Output: Add support for <q> tag
This commit is contained in:
parent
7774eb6916
commit
43103496ab
@ -386,6 +386,15 @@ class MobiMLizer(object):
|
|||||||
for attr in ('rowspan', 'colspan','width','border','scope'):
|
for attr in ('rowspan', 'colspan','width','border','scope'):
|
||||||
if attr in elem.attrib:
|
if attr in elem.attrib:
|
||||||
istate.attrib[attr] = elem.attrib[attr]
|
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
|
text = None
|
||||||
if elem.text:
|
if elem.text:
|
||||||
if istate.preserve:
|
if istate.preserve:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user