diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-13 19:12:25 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-13 19:12:25 +0000 |
| commit | 56cb9da5bfd621ffa49f82c525d0f5172ff8a2f0 (patch) | |
| tree | d8e573da0ddd812cdff5c5970214fc1ed7c99bc4 /src/main/java/org/zwobble/mammoth/docx/BodyXmlReader.java | |
| parent | 9415477ff50a54d51ed45968dd49fd524144ce42 (diff) | |
Read struckthrough runs
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/docx/BodyXmlReader.java')
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/docx/BodyXmlReader.java | 5 |
1 files changed, 5 insertions, 0 deletions
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<Optional<Style>> readRunStyle(XmlElementLike properties) { return readStyle(properties, "w:rStyle", "Run", styles::findCharacterStyleById); } |
