Shorten image-prefix, move it outside a-tag so linked images can be clicked

This commit is contained in:
Fierelier 2021-03-19 03:29:11 +01:00
parent 5ba20c0244
commit f26b863155
1 changed files with 1 additions and 1 deletions

View File

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