From 57cc8dff2e5723b8468c2f1fa1020ac2a9144022 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 22 Apr 2014 11:05:42 +0100 Subject: Rename styleName to the more accurate styleId --- lib/document-to-html.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/document-to-html.js') 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) { -- cgit v1.2.3