From 945855611a8a6217edf594ebb359207fcdb1e941 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 18 Dec 2011 23:42:22 +0530 Subject: [PATCH] ... --- src/calibre/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/__init__.py b/src/calibre/__init__.py index 989ad3de84..2ed2173d87 100644 --- a/src/calibre/__init__.py +++ b/src/calibre/__init__.py @@ -527,7 +527,7 @@ def entity_to_unicode(match, exceptions=[], encoding='cp1252', ent = match.group(1) if ent in exceptions: return '&'+ent+';' - if ent == 'apos': + if ent in {'apos', 'squot'}: # squot is generated by some broken CMS software return check("'") if ent == 'hellips': ent = 'hellip'