From 67c1816d01c487dd8897e2ac4379f9f629a505dd Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 6 Jan 2007 10:15:13 +0000 Subject: [PATCH] do not create anonymous tag. use special name for span with no id tag --- src/htmltextview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htmltextview.py b/src/htmltextview.py index 71575d894..12dfd51f1 100644 --- a/src/htmltextview.py +++ b/src/htmltextview.py @@ -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()