aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-08 20:32:33 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-08 20:32:33 +0100
commit87105c192933b043a04b1ff00abd575805bb3c65 (patch)
treeba1055fd836ef94b6587ab028b52f322826470fd /lib
parent5eb933d6c001caf7e9cba0339165f59819f79728 (diff)
Remove properties from paragraph
Diffstat (limited to 'lib')
-rw-r--r--lib/document-to-html.js2
-rw-r--r--lib/documents.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index a1b2ec6..a2d7030 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -46,7 +46,7 @@ function DocumentConverter(options) {
}
function styleForParagraph(element) {
- return paragraphStyleMap[element.properties.styleName] || defaultParagraphStyle;
+ return paragraphStyleMap[element.styleName] || defaultParagraphStyle;
}
function convertRun(run, html) {
diff --git a/lib/documents.js b/lib/documents.js
index af416da..e4f0ef7 100644
--- a/lib/documents.js
+++ b/lib/documents.js
@@ -12,8 +12,7 @@ function Paragraph(children, properties) {
return {
type: "paragraph",
children: children,
- styleName: properties.styleName,
- properties: properties
+ styleName: properties.styleName
};
}