Epub: fixes #4164, #4166
[librarian.git] / src / librarian / elements / figures / ilustr.py
index bd51453..3c3026c 100644 (file)
@@ -6,5 +6,7 @@ class Ilustr(WLElement):
 
     def get_html_attr(self, builder):
         return {
-            'src': builder.image_location + self.attrib['src']
+            'src': builder.base_url + self.attrib['src'],
+            'alt': self.attrib['alt'],
+            'title': self.attrib['alt'],
         }