diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index e9b516e4..68da9bdf 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -323,7 +323,7 @@ conditionals_use_lists:true ## they aren't intended by the author during document upload and not ## all authors know how/take the time to fix it. This feature removes ## all "empty"

tags, ie, those containing only whitespace or
-## tags. Literally: ]*>\s*(
)*\s*

+## tags. #remove_empty_p: false ## If you have the Generate Cover plugin installed, you can use the diff --git a/fanficfare/adapters/base_adapter.py b/fanficfare/adapters/base_adapter.py index 09f11bb1..54f1e1be 100644 --- a/fanficfare/adapters/base_adapter.py +++ b/fanficfare/adapters/base_adapter.py @@ -880,7 +880,7 @@ class BaseSiteAdapter(Requestable): # Remove

tags that contain only whitespace and/or
# tags. Generally for AO3/OTW because their document # converter tends to add them where not intended. - retval = re.sub(r"]*>\s*(
)*\s*

","",retval) + retval = re.sub(r"]*>\s*(\s*
\s*)*\s*

","",retval) return retval diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index 37cfc508..970348d6 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -369,7 +369,7 @@ conditionals_use_lists:true ## they aren't intended by the author during document upload and not ## all authors know how/take the time to fix it. This feature removes ## all "empty"

tags, ie, those containing only whitespace or
-## tags. Literally: ]*>\s*(
)*\s*

+## tags. #remove_empty_p: false ## If set false, the summary will have all html stripped.