From d4bc5a73fd7c6429b5e89c19b282f33e3d23de5b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 30 Oct 2022 19:27:12 +0530 Subject: [PATCH] AZW3 Input: Fix svg images that use a prefix for the SVG namespace not being recognized. Fixes #1994988 [Pictures are missing when converting from Epub to Azw3](https://bugs.launchpad.net/calibre/+bug/1994988) --- src/calibre/ebooks/mobi/reader/mobi8.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/calibre/ebooks/mobi/reader/mobi8.py b/src/calibre/ebooks/mobi/reader/mobi8.py index a866a7cdc4..ce64bb8e0c 100644 --- a/src/calibre/ebooks/mobi/reader/mobi8.py +++ b/src/calibre/ebooks/mobi/reader/mobi8.py @@ -260,13 +260,14 @@ class Mobi8Reader: # svg typ = 'svg' start = m.start() - m2 = image_tag_pattern.search(flowpart) + # strip off anything before