do not create anonymous tag. use special name for span with no id tag
This commit is contained in:
parent
978068378d
commit
67c1816d01
|
@ -508,7 +508,7 @@ class HtmlHandler(xml.sax.handler.ContentHandler):
|
||||||
if id_:
|
if id_:
|
||||||
tag = self.textbuf.create_tag(id_)
|
tag = self.textbuf.create_tag(id_)
|
||||||
else:
|
else:
|
||||||
tag = self.textbuf.create_tag()
|
tag = self.textbuf.create_tag('span with no id')
|
||||||
for attr, val in [item.split(':', 1) for item in style.split(';') if len(item.strip())]:
|
for attr, val in [item.split(':', 1) for item in style.split(';') if len(item.strip())]:
|
||||||
attr = attr.strip().lower()
|
attr = attr.strip().lower()
|
||||||
val = val.strip()
|
val = val.strip()
|
||||||
|
|
Loading…
Reference in New Issue