LRF Output:Fix #1610 (prc to lrf errors)

This commit is contained in:
Kovid Goyal 2009-01-13 21:06:15 -08:00
parent 906b282a15
commit d579de1029

View File

@ -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 = [