From 2667c488ac02d4a346bc3b89ff11b7f27125acc0 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 28 Apr 2020 13:15:54 +0100 Subject: Strip trailing slash from image urls --- paper2remarkable/providers/html.py | 1 + 1 file changed, 1 insertion(+) diff --git a/paper2remarkable/providers/html.py b/paper2remarkable/providers/html.py index 9f8394c..d71f210 100644 --- a/paper2remarkable/providers/html.py +++ b/paper2remarkable/providers/html.py @@ -67,6 +67,7 @@ class ImgProcessor(markdown.treeprocessors.Treeprocessor): img.attrib["src"] = urllib.parse.urljoin( self._base_url, img.attrib["src"] ) + img.attrib["src"] = img.attrib['src'].rstrip('/') class HTMLInformer(Informer): -- cgit v1.2.3