Dont complain about panose-1

This commit is contained in:
Kovid Goyal 2013-12-12 13:36:25 +05:30
parent 93e1b40ae9
commit f38aa84da7

View File

@ -192,6 +192,8 @@ class ErrorHandler(object):
if msg and line is not None: if msg and line is not None:
# Ignore error messages with no line numbers as these are usually # Ignore error messages with no line numbers as these are usually
# summary messages for an underlying error with a line number # summary messages for an underlying error with a line number
if 'panose-1' in msg and 'unknown property name' in msg.lower():
return # panose-1 is allowed in CSS 2.1 and is generated by calibre
self.errors.append(CSSError(level, msg, self.name, line, col)) self.errors.append(CSSError(level, msg, self.name, line, col))
def error(self, *args): def error(self, *args):