aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2018-05-10 17:21:40 +0100
committerMichael Williamson <mike@zwobble.org>2018-05-10 17:21:40 +0100
commit911a6cf046eeac57d4714dd5e39a9c264ac8def3 (patch)
treeae41194c08145166925a04eaf6b56a863609837e
parent10d697a6f84c67bac9e260233e2a170e1f745a82 (diff)
Map note/comment paragraphs to fresh HTML paragraphs
-rw-r--r--NEWS5
-rw-r--r--lib/options-reader.js6
2 files changed, 8 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 4f59cb2..8046eb1 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
* When using the pretty HTML writer, don't format HTML inside pre elements.
diff --git a/lib/options-reader.js b/lib/options-reader.js
index e7e94fd..9b1864e 100644
--- a/lib/options-reader.js
+++ b/lib/options-reader.js
@@ -25,11 +25,11 @@ var defaultStyleMap = exports._defaultStyleMap = [
"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