From aa19d49ffcc725df95e7720e836032c690275a3d Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 26 Jan 2020 15:01:06 -0800 Subject: [PATCH] Add bodystart and bodyend comments to removal list. --- cleanerupper/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cleanerupper/plugin.py b/cleanerupper/plugin.py index 692c065..0a0fb49 100644 --- a/cleanerupper/plugin.py +++ b/cleanerupper/plugin.py @@ -77,6 +77,8 @@ def remove_header_br(html): @html_cleaner def remove_misc_strings(html): html = html.replace('epub:type="pagebreak"', '') + html = html.replace('', '') + html = html.replace('', '') html = re.sub(r'title="[ivx]+"', '', html) html = re.sub(r'title="\d+"', '', html) return html