From 311863975504bf1bfb00aa66f7aad1ef1bec84d3 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 3 Jan 2015 12:15:35 -0600 Subject: [PATCH] Fix for re-souping including extra html and head tags. --- fanficdownloader/adapters/base_adapter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fanficdownloader/adapters/base_adapter.py b/fanficdownloader/adapters/base_adapter.py index 851a078d..6eef92f9 100644 --- a/fanficdownloader/adapters/base_adapter.py +++ b/fanficdownloader/adapters/base_adapter.py @@ -551,9 +551,9 @@ class BaseSiteAdapter(Configurable): retval = re.sub(r"(?!<(div|p)>)\s*(?P]+>)\s*(?!)", "
\g
",retval) - # Don't want body tags in chapter html--writers add them. + # Don't want html, head or body tags in chapter html--writers add them. # This is primarily for epub updates. - retval = re.sub(r"]*>\r?\n?","",retval) + retval = re.sub(r"]*>\r?\n?","",retval) if self.getConfig("replace_br_with_p"): # Apply heuristic processing to replace
paragraph