aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS5
-rw-r--r--src/main/java/org/zwobble/mammoth/internal/styles/DefaultStyles.java10
2 files changed, 9 insertions, 6 deletions
diff --git a/NEWS b/NEWS
index 43f0c98..300af11 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,9 @@
# 1.4.1
-Read the children of v:rect elements.
+* Read the children of v:rect elements.
+
+* Fix: default style mappings caused footnotes, endnotes and comments
+ containing multiple paragraphs to be converted into a single paragraph.
# 1.4.0
diff --git a/src/main/java/org/zwobble/mammoth/internal/styles/DefaultStyles.java b/src/main/java/org/zwobble/mammoth/internal/styles/DefaultStyles.java
index 1a023c7..e05c844 100644
--- a/src/main/java/org/zwobble/mammoth/internal/styles/DefaultStyles.java
+++ b/src/main/java/org/zwobble/mammoth/internal/styles/DefaultStyles.java
@@ -27,17 +27,17 @@ public class DefaultStyles {
"r[style-name='Strong'] => strong",
- "p[style-name='footnote text'] => p",
+ "p[style-name='footnote text'] => p:fresh",
"r[style-name='footnote reference'] =>",
- "p[style-name='endnote text'] => p",
+ "p[style-name='endnote text'] => p:fresh",
"r[style-name='endnote reference'] =>",
- "p[style-name='annotation text'] => p",
+ "p[style-name='annotation text'] => p:fresh",
"r[style-name='annotation reference'] =>",
// LibreOffice
- "p[style-name='Footnote'] => p",
+ "p[style-name='Footnote'] => p:fresh",
"r[style-name='Footnote anchor'] =>",
- "p[style-name='Endnote'] => p",
+ "p[style-name='Endnote'] => p:fresh",
"r[style-name='Endnote anchor'] =>",
"p:unordered-list(1) => ul > li:fresh",