diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-07-18 14:52:33 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-07-18 14:52:33 +0100 |
| commit | dc42c949f63688ebc953d0427d86c0771dd52f05 (patch) | |
| tree | 3cb573a351d910db9fe7b2c32ee89c6cc5dd7f89 /lib | |
| parent | 1e3229f72fa925ea3d3c2c2bbb2b5b3082bf230c (diff) | |
| parent | dee71ef0fc6f21aee4c4685dd67b721147cbb159 (diff) | |
Merge remote-tracking branch 'remotes/JohnMcLear/underline' into underline
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/document-to-html.js | 3 | ||||
| -rw-r--r-- | lib/documents.js | 1 | ||||
| -rw-r--r-- | lib/docx/document-xml-reader.js | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 7e37255..35fb3e6 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -100,6 +100,9 @@ function DocumentConversion(options) { if (run.isBold) { runHtml.open(htmlPaths.element("strong")); } + if (run.isUnderline) { + runHtml.open(htmlPaths.element("u")); + } if (run.isItalic) { runHtml.open(htmlPaths.element("em")); } diff --git a/lib/documents.js b/lib/documents.js index 07062ab..46699bc 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -42,6 +42,7 @@ function Run(children, properties) { styleId: properties.styleId || null, styleName: properties.styleName || null, isBold: properties.isBold, + isUnderline: properties.isUnderline, isItalic: properties.isItalic }; } diff --git a/lib/docx/document-xml-reader.js b/lib/docx/document-xml-reader.js index 84773e9..e0a8ad3 100644 --- a/lib/docx/document-xml-reader.js +++ b/lib/docx/document-xml-reader.js @@ -131,6 +131,7 @@ function DocumentXmlReader(options) { } } properties.isBold = !!element.first("w:b"); + properties.isUnderline = !!element.first("w:u"); properties.isItalic = !!element.first("w:i"); return new Result(properties); |
