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