aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-04-22 11:05:42 +0100
committerMichael Williamson <mike@zwobble.org>2014-04-22 11:05:42 +0100
commit57cc8dff2e5723b8468c2f1fa1020ac2a9144022 (patch)
treed04cc33addc704c07696aa44a4503c5e5388fad5 /lib/document-to-html.js
parentbc8e8b44a05041bc656e83a87d857ec58ba0b4fe (diff)
Rename styleName to the more accurate styleId
Diffstat (limited to 'lib/document-to-html.js')
-rw-r--r--lib/document-to-html.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index e8c393c..347504b 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -61,8 +61,8 @@ function DocumentConverter(options) {
if (style) {
return style.to;
} else {
- if (element.styleName) {
- messages.push(results.warning("Unrecognised paragraph style: " + element.styleName));
+ if (element.styleId) {
+ messages.push(results.warning("Unrecognised paragraph style: " + element.styleId));
}
return defaultParagraphStyle;
}
@@ -70,12 +70,12 @@ function DocumentConverter(options) {
function convertRun(run, html, messages, callback) {
var runHtml = new HtmlGenerator();
- if (run.styleName) {
+ if (run.styleId) {
var style = findStyle(run);
if (style) {
runHtml.satisfyPath(style.to);
} else {
- messages.push(results.warning("Unrecognised run style: " + run.styleName));
+ messages.push(results.warning("Unrecognised run style: " + run.styleId));
}
}
if (run.isBold) {