From c47a8392ae391571c9a2cec04a7b72f606dca920 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 16 Jul 2016 00:01:00 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index d0795f6a67..bf585b4626 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -1195,7 +1195,7 @@ class EpubContainer(Container): break if raw_unique_identifier is not None: idpf_key = raw_unique_identifier - idpf_key = re.sub(u'\u0020\u0009\u000d\u000a', u'', idpf_key) + idpf_key = re.sub(u'[\u0020\u0009\u000d\u000a]', u'', idpf_key) idpf_key = hashlib.sha1(idpf_key.encode('utf-8')).digest() key = None for item in self.opf_xpath('//*[local-name()="metadata"]/*'