From 15127cb39b2014dd7b2218fafcba970045ddadef Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 13 Feb 2016 17:45:31 +0000 Subject: Read numbering from parapgraph properties --- src/main/java/org/zwobble/mammoth/Mammoth.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/main/java/org/zwobble/mammoth/Mammoth.java') diff --git a/src/main/java/org/zwobble/mammoth/Mammoth.java b/src/main/java/org/zwobble/mammoth/Mammoth.java index e834b3b..05080cf 100644 --- a/src/main/java/org/zwobble/mammoth/Mammoth.java +++ b/src/main/java/org/zwobble/mammoth/Mammoth.java @@ -2,10 +2,7 @@ package org.zwobble.mammoth; import com.google.common.base.Joiner; import org.zwobble.mammoth.documents.*; -import org.zwobble.mammoth.docx.BodyXmlReader; -import org.zwobble.mammoth.docx.DocumentXmlReader; -import org.zwobble.mammoth.docx.OfficeXml; -import org.zwobble.mammoth.docx.Styles; +import org.zwobble.mammoth.docx.*; import org.zwobble.mammoth.xml.XmlElement; import java.io.File; @@ -22,7 +19,8 @@ public class Mammoth { XmlElement documentXml = OfficeXml.parseXml(zipFile.getInputStream(entry)); Styles styles = Styles.EMPTY; - Document document = new DocumentXmlReader(new BodyXmlReader(styles)).readElement(documentXml); + Numbering numbering = Numbering.EMPTY; + Document document = new DocumentXmlReader(new BodyXmlReader(styles, numbering)).readElement(documentXml); return convertToHtml(document); } catch (IOException e) { throw new UnsupportedOperationException("Should return a result of failure"); -- cgit v1.2.3