mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 01:13:37 +02:00
...
This commit is contained in:
parent
bd741c1934
commit
ba393182f6
1 changed files with 2 additions and 1 deletions
|
|
@ -946,7 +946,8 @@ def __str__(self):
|
|||
# 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…
Reference in a new issue