summaryrefslogtreecommitdiff
path: root/mammoth/options.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-05-17 16:32:49 +0100
committerMichael Williamson <mike@zwobble.org>2015-05-17 16:32:49 +0100
commit74c9f604aa9118ef3693a00714baa4e3f24e21d5 (patch)
treec6471590ad62211932bab38e86618b253570f3c3 /mammoth/options.py
parentd24a8455550fe959e0c2941a917eb1593c191d46 (diff)
Add ignore_empty_paragraphs option
Diffstat (limited to 'mammoth/options.py')
-rw-r--r--mammoth/options.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mammoth/options.py b/mammoth/options.py
index 3f47562..ad20d02 100644
--- a/mammoth/options.py
+++ b/mammoth/options.py
@@ -4,6 +4,7 @@ from . import style_reader, lists
def read_options(options):
custom_style_map = _read_style_map(options.get("style_map") or "")
include_default_style_map = options.get("include_default_style_map", True)
+ options["ignore_empty_paragraphs"] = options.get("ignore_empty_paragraphs", True)
options["style_map"] = custom_style_map + \
(_default_style_map if include_default_style_map else [])