From c69ed58a5f5e31abd1292e539af10384f140b9d9 Mon Sep 17 00:00:00 2001 From: "Marshall T. Vandegrift" Date: Tue, 7 Oct 2008 17:15:29 -0400 Subject: [PATCH] Fix #1018 --- src/calibre/ebooks/lit/reader.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/calibre/ebooks/lit/reader.py b/src/calibre/ebooks/lit/reader.py index 1a08803126..4197ea7686 100644 --- a/src/calibre/ebooks/lit/reader.py +++ b/src/calibre/ebooks/lit/reader.py @@ -110,6 +110,9 @@ def consume_sized_utf8_string(bytes, zpad=False): class UnBinary(object): AMPERSAND_RE = re.compile( r'&(?!(?:#[0-9]+|#x[0-9a-fA-F]+|[a-zA-Z_:][a-zA-Z0-9.-_:]+);)') + OPEN_ANGLE_RE = re.compile(r'<<(?![!]--)') + CLOSE_ANGLE_RE = re.compile(r'(?