From 85235a9cf69f847c2451eacaf44a242e6433937a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 29 Nov 2016 21:42:49 +0000 Subject: Introduce string matchers for matching style name --- mammoth/styles/parser/document_matcher_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mammoth/styles/parser/document_matcher_parser.py') diff --git a/mammoth/styles/parser/document_matcher_parser.py b/mammoth/styles/parser/document_matcher_parser.py index 5f85a18..95f3359 100644 --- a/mammoth/styles/parser/document_matcher_parser.py +++ b/mammoth/styles/parser/document_matcher_parser.py @@ -49,7 +49,7 @@ def _parse_style_name(tokens): tokens.skip(TokenType.SYMBOL, "=") name = parse_string(tokens) tokens.skip(TokenType.SYMBOL, "]") - return name + return document_matchers.equal_to(name) else: return None -- cgit v1.2.3