From c8516d0a4e9467d4313af4ba63196bca184812b3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 24 Nov 2016 22:13:00 +0000 Subject: Use recursive descent parser instead of parsimonious --- mammoth/options.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mammoth/options.py') diff --git a/mammoth/options.py b/mammoth/options.py index d33b7ba..fcdba74 100644 --- a/mammoth/options.py +++ b/mammoth/options.py @@ -1,4 +1,5 @@ -from . import style_reader, lists, results +from .styles.parser import read_style_mapping +from . import lists, results def read_options(options): @@ -24,7 +25,7 @@ def read_options(options): def _read_style_map(style_text): lines = filter(None, map(_get_line, style_text.split("\n"))) - return results.combine(lists.map(style_reader.read_style, lines)) \ + return results.combine(lists.map(read_style_mapping, lines)) \ .map(lambda style_mappings: lists.filter(None, style_mappings)) -- cgit v1.2.3