From c7fa79f49a40d6fafc70754ccbd93cf5cd364541 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 10 May 2018 17:28:38 +0100 Subject: Map note/comment paragraphs to fresh HTML paragraphs --- NEWS | 5 +++++ mammoth/options.py | 10 +++++----- 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 -- cgit v1.2.3