mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -194,7 +194,7 @@ class Stylizer(object):
|
|||||||
from lxml.builder import ElementMaker
|
from lxml.builder import ElementMaker
|
||||||
E = ElementMaker(namespace=XHTML_NS)
|
E = ElementMaker(namespace=XHTML_NS)
|
||||||
for elem in matches:
|
for elem in matches:
|
||||||
for x in elem.iter():
|
for x in elem.iter('*'):
|
||||||
if x.text:
|
if x.text:
|
||||||
punctuation_chars = []
|
punctuation_chars = []
|
||||||
text = unicode(x.text)
|
text = unicode(x.text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user