From f26b863155ac7243bab17e5351b891c9f9dd84d5 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Fri, 19 Mar 2021 03:29:11 +0100 Subject: [PATCH] Shorten image-prefix, move it outside a-tag so linked images can be clicked --- addons/0.documentViewer.QTextBrowser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/0.documentViewer.QTextBrowser.py b/addons/0.documentViewer.QTextBrowser.py index 6800f4c..61257ec 100644 --- a/addons/0.documentViewer.QTextBrowser.py +++ b/addons/0.documentViewer.QTextBrowser.py @@ -36,7 +36,7 @@ class browserDoc(QTextBrowser): if attr[0] == "src": url = attr[1] if not altText: altText = url.rsplit("/")[-1] - self.output += 'image: ' +html.escape(altText)+ '' + self.output += 'img:' +html.escape(altText)+ '' return return