From 5ac7ff5bf2ee81c4148e1d7d8e29b0f8a6bdd6bb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 2 May 2009 18:36:51 -0700 Subject: [PATCH] MOBI Output: Fix crash when CSS contains invalid font size entries --- src/calibre/ebooks/oeb/stylizer.py | 37 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/src/calibre/ebooks/oeb/stylizer.py b/src/calibre/ebooks/oeb/stylizer.py index 3b5c3e19d0..a6803854e8 100644 --- a/src/calibre/ebooks/oeb/stylizer.py +++ b/src/calibre/ebooks/oeb/stylizer.py @@ -88,7 +88,7 @@ FONT_SIZE_NAMES = set(['xx-small', 'x-small', 'small', 'medium', 'large', class CSSSelector(etree.XPath): MIN_SPACE_RE = re.compile(r' *([>~+]) *') LOCAL_NAME_RE = re.compile(r"(?