From da33e043978bda5eeb0e9a6bb1b5e14c950bd443 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 17 Feb 2009 14:47:52 -0800 Subject: [PATCH] EPUB Output:Strip all comments from input source since Adobe DE crashes and burns on "in comment markup". Fixes #1866 (Calibre 4.137 NY Time Subscription Issue) --- src/calibre/ebooks/html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/html.py b/src/calibre/ebooks/html.py index 43c98c1b45..3084aa67ad 100644 --- a/src/calibre/ebooks/html.py +++ b/src/calibre/ebooks/html.py @@ -332,8 +332,8 @@ class PreProcessor(object): (re.compile(r'&(\S+?);'), convert_entities), # Remove the ]*>'), lambda match: ''), - # Replace ---> with --> since Adobe DE cries when it sees one - (re.compile(r'-{3,}>'), lambda match : '-->'), + # Strip all comments since Adobe DE is petrified of them + (re.compile(r'