Shorten image-prefix, move it outside a-tag so linked images can be clicked
This commit is contained in:
parent
5ba20c0244
commit
f26b863155
@ -36,7 +36,7 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user