From 18501b91085aacad1d3411248d20b66be938d3f4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 20 Sep 2024 11:26:33 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/chardet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/chardet.py b/src/calibre/ebooks/chardet.py index 94a7c1701f..0caaa05f5e 100644 --- a/src/calibre/ebooks/chardet.py +++ b/src/calibre/ebooks/chardet.py @@ -19,7 +19,7 @@ _encoding_pats = ( # HTML 4 Pragma directive r''']*?content\s*=\s*['"][^'"]*?charset=([-_a-z0-9]+)[^'"]*?['"][^<>]*>(?:\s*){0,1}''', ) -substitute_entities = xml_replace_entities # for plugins that might use this +substitute_entities = substitute_entites = xml_replace_entities # for plugins that might use this def compile_pats(binary):