HTML Input: Fix the presence of BookDesigner markup causing conversion to fail. Fixes #1936792 [Html conversion BookTitle](https://bugs.launchpad.net/calibre/+bug/1936792)

This commit is contained in:
Kovid Goyal 2021-07-19 21:12:26 +05:30
parent b3a3859dd8
commit c5320420a9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -452,7 +452,7 @@ def book_designer_rules():
(re.compile('<span[^><]*?id=subtitle[^><]*?>(.*?)</span>', re.IGNORECASE|re.DOTALL), (re.compile('<span[^><]*?id=subtitle[^><]*?>(.*?)</span>', re.IGNORECASE|re.DOTALL),
lambda match : '<h3 class="subtitle">%s</h3>'%(match.group(1),)), lambda match : '<h3 class="subtitle">%s</h3>'%(match.group(1),)),
] ]
return None return ans
class HTMLPreProcessor(object): class HTMLPreProcessor(object):