From 969ce03d0d249e86e3643ac1ea84a48689f3ee37 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 21 May 2012 03:49:38 +0530 Subject: [PATCH] Conversion pipeline: Use correct default value of 'inherit' for font-family and font-size when normalizing the shorthand font property --- src/calibre/ebooks/oeb/stylizer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/stylizer.py b/src/calibre/ebooks/oeb/stylizer.py index be96a8dd03..969f7c763a 100644 --- a/src/calibre/ebooks/oeb/stylizer.py +++ b/src/calibre/ebooks/oeb/stylizer.py @@ -457,7 +457,9 @@ class Stylizer(object): value = primitives.pop() for key in composition: if key not in style: - style[key] = DEFAULTS[key] + val = ('inherit' if key in {'font-family', 'font-size'} + else 'normal') + style[key] = val return style def style(self, element):