mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
LRF Output:Fix #1610 (prc to lrf errors)
This commit is contained in:
parent
906b282a15
commit
d579de1029
@ -109,6 +109,10 @@ class HTMLConverter(object, LoggingInterface):
|
|||||||
# Remove self closing script tags as they also mess up BeautifulSoup
|
# Remove self closing script tags as they also mess up BeautifulSoup
|
||||||
(re.compile(r'(?i)<script[^<>]+?/>'), lambda match: ''),
|
(re.compile(r'(?i)<script[^<>]+?/>'), lambda match: ''),
|
||||||
|
|
||||||
|
# BeautifulSoup treats self closing <div> tags as open <div> tags
|
||||||
|
(re.compile(r'(?i)<\s*div([^>]*)/\s*>'),
|
||||||
|
lambda match: '<div%s></div>'%match.group(1))
|
||||||
|
|
||||||
]
|
]
|
||||||
# Fix Baen markup
|
# Fix Baen markup
|
||||||
BAEN = [
|
BAEN = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user