mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
bd741c1934
commit
ba393182f6
@ -946,7 +946,8 @@ class Manifest(object):
|
||||
# ones, as they are interpreted incorrectly by some browser
|
||||
# based renderers
|
||||
ans = re.sub(
|
||||
r'<(?P<tag>div|a|span)(?=[\s/])(?P<arg>[^>]*)/\s*>',
|
||||
# tag name followed by either a space or a /
|
||||
r'<(?P<tag>div|a|span)(?=[\s/])(?P<arg>[^>]*)/>',
|
||||
r'<\g<tag>\g<arg>></\g<tag>>', ans)
|
||||
return ans
|
||||
if isinstance(data, unicode):
|
||||
|
Loading…
x
Reference in New Issue
Block a user