From 2935aefeb21941a42a5889bcf8a71d006b15ec36 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 13 Jan 2016 18:57:52 +0000 Subject: Improve support for lists made in LibreOffice --- NEWS | 4 ++++ lib/options-reader.js | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index cf31831..1fe164b 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,9 @@ # 0.3.30 +* Improve support for lists made in LibreOffice. Specifically, this changes the + default style mapping for paragraphs with a style of "Normal" to have the + lowest precedence. + * Replace nomnom with argparse for CLI argument parsing. Usage should be the same, but unknown arguments will now cause an exit with failure rather than being ignored. diff --git a/lib/options-reader.js b/lib/options-reader.js index f2f31e2..19934d8 100644 --- a/lib/options-reader.js +++ b/lib/options-reader.js @@ -6,8 +6,6 @@ var _ = require("underscore"); var standardOptions = exports._standardOptions = { styleMap: [ - "p[style-name='Normal'] => p:fresh", - "p.Heading1 => h1:fresh", "p.Heading2 => h2:fresh", "p.Heading3 => h3:fresh", @@ -46,7 +44,10 @@ var standardOptions = exports._standardOptions = { "p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh", "p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh", - "r[style-name='Hyperlink'] =>" + "r[style-name='Hyperlink'] =>", + + "p[style-name='Normal'] => p:fresh" + ], transformDocument: identity, includeDefaultStyleMap: true -- cgit v1.2.3