Fix for calibre converted <body ...> tags.

This commit is contained in:
Jim Miller
2014-02-21 19:04:40 -06:00
parent 3267064576
commit 683ad6182d
+1 -1
View File
@@ -367,7 +367,7 @@ class BaseSiteAdapter(Configurable):
# Don't want body tags in chapter html--writers add them.
# This is primarily for epub updates.
retval = re.sub(r"</?body>\r?\n?","",retval)
retval = re.sub(r"</?body[^>]*>\r?\n?","",retval)
if self.getConfig("replace_br_with_p"):
# Apply heuristic processing to replace <br> paragraph