diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-08 20:34:34 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-08 20:34:34 +0100 |
| commit | c1a3e929b7268f14619daf3eff0085a747703f7e (patch) | |
| tree | 05b686b62e61d55ac2faebe49fe132d4757eeefb /lib/document-to-html.js | |
| parent | 87105c192933b043a04b1ff00abd575805bb3c65 (diff) | |
Remove properties attribute from Run
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 a2d7030..1fce576 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -51,16 +51,16 @@ function DocumentConverter(options) { function convertRun(run, html) { var runHtml = new HtmlGenerator(); - if (run.properties.styleName) { - var style = runStyleMap[run.properties.styleName]; + if (run.styleName) { + var style = runStyleMap[run.styleName]; if (style) { runHtml.style(style); } } - if (run.properties.isBold) { + if (run.isBold) { runHtml.push(styles.element("strong")); } - if (run.properties.isItalic) { + if (run.isItalic) { runHtml.push(styles.element("em")); } return convertElements(run.children, runHtml) |
