mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:23:25 +02:00
MOBI Ouput: Fix :first-letter applied to elements containing a comment causing conversion to fail
This commit is contained in:
parent
4c5513f798
commit
63a2f3c21e
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ def __init__(self, tree, path, oeb, opts, profile=None,
|
|||
from lxml.builder import ElementMaker
|
||||
E = ElementMaker(namespace=XHTML_NS)
|
||||
for elem in matches:
|
||||
for x in elem.iter():
|
||||
for x in elem.iter('*'):
|
||||
if x.text:
|
||||
punctuation_chars = []
|
||||
text = unicode(x.text)
|
||||
|
|
|
|||
Loading…
Reference in a new issue