diff --git a/src/calibre/ebooks/mobi/mobiml.py b/src/calibre/ebooks/mobi/mobiml.py index 56930ad2a9..7e4e2e4f57 100644 --- a/src/calibre/ebooks/mobi/mobiml.py +++ b/src/calibre/ebooks/mobi/mobiml.py @@ -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: