Handling empty properties

This commit is contained in:
Fierelier 2021-03-19 03:24:36 +01:00
parent 25d141d7f8
commit 5ba20c0244

View File

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