diff --git a/addons/0.documentViewer.QTextBrowser.py b/addons/0.documentViewer.QTextBrowser.py index 5d087df..6800f4c 100644 --- a/addons/0.documentViewer.QTextBrowser.py +++ b/addons/0.documentViewer.QTextBrowser.py @@ -43,7 +43,10 @@ class browserDoc(QTextBrowser): self.output += "<" +tag for attr in attrs: - self.output += ' ' +html.escape(attr[0])+ '="' +html.escape(attr[1])+ '"' + if attr[1] != None: + self.output += ' ' +html.escape(attr[0])+ '="' +html.escape(attr[1])+ '"' + else: + self.output += ' ' +html.escape(attr[0]) self.output += ">" def handle_endtag(self,tag):