From 56cb9da5bfd621ffa49f82c525d0f5172ff8a2f0 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 13 Feb 2016 19:12:25 +0000 Subject: Read struckthrough runs --- src/main/java/org/zwobble/mammoth/docx/BodyXmlReader.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/org/zwobble/mammoth/docx/BodyXmlReader.java') diff --git a/src/main/java/org/zwobble/mammoth/docx/BodyXmlReader.java b/src/main/java/org/zwobble/mammoth/docx/BodyXmlReader.java index 1cc7a34..7885c3f 100644 --- a/src/main/java/org/zwobble/mammoth/docx/BodyXmlReader.java +++ b/src/main/java/org/zwobble/mammoth/docx/BodyXmlReader.java @@ -53,6 +53,7 @@ public class BodyXmlReader { isBold(properties), isItalic(properties), isUnderline(properties), + isStrikethrough(properties), style, children)); } @@ -69,6 +70,10 @@ public class BodyXmlReader { return properties.hasChild("w:u"); } + private boolean isStrikethrough(XmlElementLike properties) { + return properties.hasChild("w:strike"); + } + private Result> readRunStyle(XmlElementLike properties) { return readStyle(properties, "w:rStyle", "Run", styles::findCharacterStyleById); } -- cgit v1.2.3