From f38aa84da7e881f2bc59e59070ef528e8b99e1d0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 12 Dec 2013 13:36:25 +0530 Subject: [PATCH] Dont complain about panose-1 --- src/calibre/ebooks/oeb/polish/check/parsing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/ebooks/oeb/polish/check/parsing.py b/src/calibre/ebooks/oeb/polish/check/parsing.py index 35910542fd..4e3a2268db 100644 --- a/src/calibre/ebooks/oeb/polish/check/parsing.py +++ b/src/calibre/ebooks/oeb/polish/check/parsing.py @@ -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):