do not create anonymous tag. use special name for span with no id tag

This commit is contained in:
Nikos Kouremenos 2007-01-06 10:15:13 +00:00
parent 978068378d
commit 67c1816d01
1 changed files with 1 additions and 1 deletions

View File

@ -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()