Compare commits
2 Commits
25d141d7f8
...
f26b863155
Author | SHA1 | Date |
---|---|---|
Fierelier | f26b863155 | |
Fierelier | 5ba20c0244 |
|
@ -36,14 +36,17 @@ class browserDoc(QTextBrowser):
|
|||
if attr[0] == "src":
|
||||
url = attr[1]
|
||||
if not altText: altText = url.rsplit("/")[-1]
|
||||
self.output += '<a href="' +html.escape(url)+ '">image: ' +html.escape(altText)+ '</a>'
|
||||
self.output += 'img:<a href="' +html.escape(url)+ '">' +html.escape(altText)+ '</a>'
|
||||
return
|
||||
|
||||
return
|
||||
|
||||
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):
|
||||
|
|
Loading…
Reference in New Issue