Handling empty properties
This commit is contained in:
parent
25d141d7f8
commit
5ba20c0244
@ -43,7 +43,10 @@ class browserDoc(QTextBrowser):
|
|||||||
|
|
||||||
self.output += "<" +tag
|
self.output += "<" +tag
|
||||||
for attr in attrs:
|
for attr in attrs:
|
||||||
|
if attr[1] != None:
|
||||||
self.output += ' ' +html.escape(attr[0])+ '="' +html.escape(attr[1])+ '"'
|
self.output += ' ' +html.escape(attr[0])+ '="' +html.escape(attr[1])+ '"'
|
||||||
|
else:
|
||||||
|
self.output += ' ' +html.escape(attr[0])
|
||||||
self.output += ">"
|
self.output += ">"
|
||||||
|
|
||||||
def handle_endtag(self,tag):
|
def handle_endtag(self,tag):
|
||||||
|
Loading…
Reference in New Issue
Block a user