diff options
Diffstat (limited to 'lib/document-to-html.js')
| -rw-r--r-- | lib/document-to-html.js | 8 |
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) { |
