From 86e37ffa1500a444b59d9ae951f4bfa0bff69caf Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 7 Jan 2014 22:55:43 +0000 Subject: Include default style map when using custom style map --- mammoth/options.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'mammoth') diff --git a/mammoth/options.py b/mammoth/options.py index 4e4d5f1..a2e32b7 100644 --- a/mammoth/options.py +++ b/mammoth/options.py @@ -2,12 +2,9 @@ from . import style_reader, lists def read_options(options): - if options.get("style_map") is None: - style_map = _default_style_map - else: - style_map = _read_style_map(style_map) + custom_style_map = _read_style_map(options.get("style_map") or "") - options["style_map"] = style_map + options["style_map"] = custom_style_map + _default_style_map return options -- cgit v1.2.3