From 0f5b72b4372c799d127221efb579787b3ada8d5d Mon Sep 17 00:00:00 2001 From: Andrey Efremov Date: Sun, 6 Oct 2019 13:35:27 +0700 Subject: [PATCH] FB2 Output: Use short xlink namespace --- src/calibre/ebooks/fb2/fb2ml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/ebooks/fb2/fb2ml.py b/src/calibre/ebooks/fb2/fb2ml.py index 91d05f0140..9d88d5554f 100644 --- a/src/calibre/ebooks/fb2/fb2ml.py +++ b/src/calibre/ebooks/fb2/fb2ml.py @@ -196,7 +196,7 @@ class FB2MLizer(object): metadata['comments'] = '{}'.format(prepare_string_for_xml(html2text(comments.value.strip()))) return textwrap.dedent(''' - + %(genre)s @@ -255,7 +255,7 @@ class FB2MLizer(object): # Only write the image tag if it is in the manifest. if cover_href in self.oeb_book.manifest.hrefs and cover_href not in self.image_hrefs: self.image_hrefs[cover_href] = 'img_%s' % len(self.image_hrefs) - return '' % self.image_hrefs[cover_href] + return '' % self.image_hrefs[cover_href] return '' @@ -466,7 +466,7 @@ class FB2MLizer(object): p_txt, p_tag = self.ensure_p() fb2_out += p_txt tags += p_tag - fb2_out.append('' % self.image_hrefs[ihref]) + fb2_out.append('' % self.image_hrefs[ihref]) else: self.log.warn(u'Ignoring image not in manifest: %s'%ihref) if tag in ('br', 'hr') or ems >= 1: