From 74c9f604aa9118ef3693a00714baa4e3f24e21d5 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 17 May 2015 16:32:49 +0100 Subject: Add ignore_empty_paragraphs option --- mammoth/options.py | 1 + 1 file changed, 1 insertion(+) (limited to 'mammoth/options.py') 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 []) -- cgit v1.2.3