File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
main/java/org/zwobble/mammoth/internal/docx
test/java/org/zwobble/mammoth/tests/docx Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 99* Emit warning instead of throwing exception when image file cannot be found for
1010 a:blip elements.
1111
12+ * Ignore w:u elements when w:val is missing.
13+
1214# 1.4.2
1315
1416* Support soft hyphens.
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ private boolean isUnderline(XmlElementLike properties) {
209209 return properties .findChild ("w:u" )
210210 .map (child -> child .getAttributeOrNone ("w:val" )
211211 .map (value -> !value .equals ("false" ) && !value .equals ("0" ) && !value .equals ("none" ))
212- .orElse (true ))
212+ .orElse (false ))
213213 .orElse (false );
214214 }
215215
Original file line number Diff line number Diff line change @@ -579,12 +579,12 @@ public void runIsNotUnderlinedIfUnderlineElementIsNotPresent() {
579579 }
580580
581581 @ Test
582- public void runIsUnderlinedIfUnderlineElementIsPresentWithoutValAttribute () {
582+ public void runIsNotUnderlinedIfUnderlineElementIsPresentWithoutValAttribute () {
583583 XmlElement element = runXmlWithProperties (element ("w:u" ));
584584
585585 assertThat (
586586 readSuccess (bodyReader (), element ),
587- hasProperty ("underline" , equalTo (true ))
587+ hasProperty ("underline" , equalTo (false ))
588588 );
589589 }
590590
You can’t perform that action at this time.
0 commit comments