aboutsummaryrefslogtreecommitdiff
path: root/mammoth/style_reader/document_matcher_reader.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-14 17:33:13 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-14 17:33:13 +0000
commit85cc3f93c01312a907fd017d34bc2e5542cac670 (patch)
tree6319244994842c813c73005de7cb971fbfe99061 /mammoth/style_reader/document_matcher_reader.py
parentf5595b78f59d3f3a04c4e83702114dc2704f808a (diff)
Plumbing to get full stack working
Diffstat (limited to 'mammoth/style_reader/document_matcher_reader.py')
-rw-r--r--mammoth/style_reader/document_matcher_reader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/style_reader/document_matcher_reader.py b/mammoth/style_reader/document_matcher_reader.py
index 4bc7247..44a9896 100644
--- a/mammoth/style_reader/document_matcher_reader.py
+++ b/mammoth/style_reader/document_matcher_reader.py
@@ -37,7 +37,7 @@ def _read_style_node(style_node):
def _read_list_node(list_node):
if list_node.children:
return documents.numbering_level(
- int(list_node.children[0].children[3].text),
+ int(list_node.children[0].children[3].text) - 1,
is_ordered=list_node.children[0].children[1].text == "ordered-list",
)
else: