@jsreport/jsreport-docx
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -332,2 +332,8 @@ const cheerio = require('cheerio') | ||
// if text contains at least one character that is not white space then ignore | ||
// the normalization | ||
if (childNode.nodeValue !== '' && /[^ ]/.test(childNode.nodeValue)) { | ||
continue | ||
} | ||
childNode.nodeValue = childNode.nodeValue.replace(/^[ ]+([^ ]*)/, '$1') | ||
@@ -334,0 +340,0 @@ childNode.nodeValue = childNode.nodeValue.replace(/([^ ]*)[ ]+$/, '$1') |
{ | ||
"name": "@jsreport/jsreport-docx", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"description": "jsreport recipe rendering docx files", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -10,2 +10,6 @@ # @jsreport/jsreport-docx | ||
### 3.5.1 | ||
- fix normalizing space for middle text element in `docxHtml` | ||
### 3.5.0 | ||
@@ -12,0 +16,0 @@ |
270358
6228
42