summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2018-05-10 17:28:38 +0100
committerMichael Williamson <mike@zwobble.org>2018-05-10 17:28:38 +0100
commitc7fa79f49a40d6fafc70754ccbd93cf5cd364541 (patch)
tree60967c2bab905afc6f6bd9b542ccef1af72a7c35
parentc9686958ced83ade4e9579a95913ea22bbc38b32 (diff)
Map note/comment paragraphs to fresh HTML paragraphs
-rw-r--r--NEWS5
-rw-r--r--mammoth/options.py10
2 files changed, 10 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index 10ac5ff..759ab96 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+# 1.4.6
+
+* Fix: default style mappings caused footnotes, endnotes and comments
+ containing multiple paragraphs to be converted into a single paragraph.
+
# 1.4.5
* Read the children of v:rect elements.
diff --git a/mammoth/options.py b/mammoth/options.py
index fcdba74..11a61b6 100644
--- a/mammoth/options.py
+++ b/mammoth/options.py
@@ -59,17 +59,17 @@ p[style-name='heading 6'] => h6:fresh
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