mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Dont complain about panose-1
This commit is contained in:
parent
93e1b40ae9
commit
f38aa84da7
@ -192,6 +192,8 @@ class ErrorHandler(object):
|
||||
if msg and line is not None:
|
||||
# Ignore error messages with no line numbers as these are usually
|
||||
# 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))
|
||||
|
||||
def error(self, *args):
|
||||
|
Loading…
x
Reference in New Issue
Block a user