aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
authorvgmoose <me@vgmoose.com>2017-07-21 00:04:49 -0400
committervgmoose <me@vgmoose.com>2017-07-21 00:04:49 -0400
commit33f089bb9f1d8fa599fe10ba1ddead6c10dbd4b4 (patch)
tree40b6f218fbbac7782effb8b0ab1255b3e773a315 /lib/document-to-html.js
parent9c9cb3e30d7cae37b42537e59ba38571a9e06097 (diff)
Rename smallCaps style mapping to small-caps
Diffstat (limited to 'lib/document-to-html.js')
-rw-r--r--lib/document-to-html.js6
1 files changed, 3 insertions, 3 deletions
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) {