From f5595b78f59d3f3a04c4e83702114dc2704f808a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 14 Dec 2013 17:25:23 +0000 Subject: Match document matchers with numbering correctly --- mammoth/docx/numbering_xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mammoth/docx') diff --git a/mammoth/docx/numbering_xml.py b/mammoth/docx/numbering_xml.py index 115d812..ebac1c8 100644 --- a/mammoth/docx/numbering_xml.py +++ b/mammoth/docx/numbering_xml.py @@ -1,4 +1,4 @@ -from ..documents import NumberingLevel +from ..documents import numbering_level def read_numbering_xml_element(element): @@ -30,7 +30,7 @@ def _read_abstract_num_level(element): level_index = element.attributes["w:ilvl"] num_fmt = element.find_child_or_null("w:numFmt").attributes.get("w:val") is_ordered = num_fmt != "bullet" - return NumberingLevel(level_index, is_ordered) + return numbering_level(level_index, is_ordered) def _read_nums(element, abstract_nums): -- cgit v1.2.3