From ba393182f6f1f6df6d47b76fc0aa79655d9fa49d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 20 Dec 2011 11:21:53 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/base.py b/src/calibre/ebooks/oeb/base.py index 43e951354f..096f041ca6 100644 --- a/src/calibre/ebooks/oeb/base.py +++ b/src/calibre/ebooks/oeb/base.py @@ -946,7 +946,8 @@ class Manifest(object): # ones, as they are interpreted incorrectly by some browser # based renderers ans = re.sub( - r'<(?Pdiv|a|span)(?=[\s/])(?P[^>]*)/\s*>', + # tag name followed by either a space or a / + r'<(?Pdiv|a|span)(?=[\s/])(?P[^>]*)/>', r'<\g\g>>', ans) return ans if isinstance(data, unicode):