summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2018-05-10 17:36:22 +0100
committerMichael Williamson <mike@zwobble.org>2018-05-10 17:36:22 +0100
commit2ac7403acdbaabcfe31b2239f46bf915707ceaf1 (patch)
tree7357bcf6bfa31a552c6416811c05fa51ae01bb52
parent552baca50437ddf27f53ecb66b7bcaad29136e6e (diff)
Map note/comment paragraphs to fresh HTML paragraphs
-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",