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_:
|
||||
tag = self.textbuf.create_tag(id_)
|
||||
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())]:
|
||||
attr = attr.strip().lower()
|
||||
val = val.strip()
|
||||
|
|
Loading…
Reference in New Issue