Remove some spurious CSS parsing warnings from EPUB conversion output

This commit is contained in:
Kovid Goyal 2008-12-31 11:30:10 -08:00
parent 16ac51a652
commit e56910ad12

View File

@ -809,7 +809,7 @@ class Processor(Parser):
css = '\n'.join(['.%s {%s;}'%(cn, setting) for \
setting, cn in cache.items()])
sheet = self.css_parser.parseString(self.preprocess_css(css))
sheet = self.css_parser.parseString(self.preprocess_css(css.replace(';;}', ';}')))
for rule in sheet:
self.stylesheet.add(rule)
css = ''