From 00f358b17eff4dfd4bc8d033a73d7f3f59a1153c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 17 Oct 2010 14:16:44 -0600 Subject: [PATCH] Fix #7118 (Problem with MSWord HTML/CSS comments and Smart Punct combo) --- src/calibre/utils/smartypants.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/smartypants.py b/src/calibre/utils/smartypants.py index 44aac4de8c..62845b8d7a 100644 --- a/src/calibre/utils/smartypants.py +++ b/src/calibre/utils/smartypants.py @@ -376,7 +376,8 @@ default_smartypants_attr = "1" import re -tags_to_skip_regex = re.compile(r"<(/)?(pre|code|kbd|script|math)[^>]*>", re.I) +# style added by Kovid +tags_to_skip_regex = re.compile(r"<(/)?(style|pre|code|kbd|script|math)[^>]*>", re.I) def verify_installation(request):