From 33f089bb9f1d8fa599fe10ba1ddead6c10dbd4b4 Mon Sep 17 00:00:00 2001 From: vgmoose Date: Fri, 21 Jul 2017 00:04:49 -0400 Subject: Rename smallCaps style mapping to small-caps --- lib/document-to-html.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/document-to-html.js') diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 83e78fd..0dac05e 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -127,6 +127,9 @@ function DocumentConversion(options, comments) { return convertElements(run.children, messages, options); }; var paths = []; + if (run.isSmallCaps) { + paths.push(findHtmlPathForRunProperty("smallCaps")); + } if (run.isStrikethrough) { paths.push(findHtmlPathForRunProperty("strikethrough", "s")); } @@ -145,9 +148,6 @@ function DocumentConversion(options, comments) { if (run.isBold) { paths.push(findHtmlPathForRunProperty("bold", "strong")); } - if (run.isSmallCaps) { - paths.push(findHtmlPathForRunProperty("smallCaps")); - } var stylePath = htmlPaths.empty; var style = findStyle(run); if (style) { -- cgit v1.2.3