aboutsummaryrefslogtreecommitdiff
path: root/mammoth/styles/parser
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-29 21:42:49 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-29 21:42:49 +0000
commit85235a9cf69f847c2451eacaf44a242e6433937a (patch)
treef87a13301a134dc10f3190ecbb7a6d45e23f89ae /mammoth/styles/parser
parent15984eb246379f80050ee2bd816dc9bb2a1ffc5f (diff)
Introduce string matchers for matching style name
Diffstat (limited to 'mammoth/styles/parser')
-rw-r--r--mammoth/styles/parser/document_matcher_parser.py2
1 files changed, 1 insertions, 1 deletions
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