From 52e45253c848423cd76d2e1a26b42011139f0219 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 17 Feb 2009 12:32:48 -0800 Subject: [PATCH] Fix #1874 (calibre generated invalid epub) --- src/calibre/ebooks/html.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/ebooks/html.py b/src/calibre/ebooks/html.py index f69f26a1e6..43c98c1b45 100644 --- a/src/calibre/ebooks/html.py +++ b/src/calibre/ebooks/html.py @@ -332,6 +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 : '-->'), ] # Fix pdftohtml markup