diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-04-22 11:05:42 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-04-22 11:05:42 +0100 |
| commit | 57cc8dff2e5723b8468c2f1fa1020ac2a9144022 (patch) | |
| tree | d04cc33addc704c07696aa44a4503c5e5388fad5 /lib/docx/document-xml-reader.js | |
| parent | bc8e8b44a05041bc656e83a87d857ec58ba0b4fe (diff) | |
Rename styleName to the more accurate styleId
Diffstat (limited to 'lib/docx/document-xml-reader.js')
| -rw-r--r-- | lib/docx/document-xml-reader.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/docx/document-xml-reader.js b/lib/docx/document-xml-reader.js index 1825006..a23aa5f 100644 --- a/lib/docx/document-xml-reader.js +++ b/lib/docx/document-xml-reader.js @@ -62,7 +62,7 @@ function DocumentXmlReader(relationships, contentTypes, docxFile, numbering) { var styleElement = element.first("w:pStyle"); if (styleElement) { - properties.styleName = styleElement.attributes["w:val"]; + properties.styleId = styleElement.attributes["w:val"]; } var alignElement = element.first("w:jc"); if (alignElement) { @@ -96,7 +96,7 @@ function DocumentXmlReader(relationships, contentTypes, docxFile, numbering) { var styleElement = element.first("w:rStyle"); if (styleElement) { - properties.styleName = styleElement.attributes["w:val"]; + properties.styleId = styleElement.attributes["w:val"]; } properties.isBold = !!element.first("w:b"); properties.isItalic = !!element.first("w:i"); |
