diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/docx/body-reader.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js index 6bc1934..61dc79d 100644 --- a/lib/docx/body-reader.js +++ b/lib/docx/body-reader.js @@ -38,10 +38,7 @@ function BodyReader(options) { type: "runProperties" }; - var verticalAlignmentElement = element.first("w:vertAlign"); - if (verticalAlignmentElement) { - properties.verticalAlignment = verticalAlignmentElement.attributes["w:val"]; - } + properties.verticalAlignment = element.firstOrEmpty("w:vertAlign").attributes["w:val"]; properties.font = element.firstOrEmpty("w:rFonts").attributes["w:ascii"]; properties.isBold = readBooleanElement(element.first("w:b")); properties.isUnderline = readBooleanElement(element.first("w:u")); |
