@legalplace/prerenderx 2.3.47 → 2.3.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ var OptionRender = (function () {
39
39
  }
40
40
  var variables = OutputParser_1.getRelatedVariablesValues(this.id, this.index, outputReference.variables, this.ovc, this.references);
41
41
  var output = OutputParser_1.parseOutputWithVariables(option.meta.output, variables, autonums);
42
- output = output.replace(/\n/g, '<br />');
42
+ output = output.replace(/>([\n\s]+)</g, '><');
43
43
  output = output.replace(/\xA0/g, ' ');
44
44
  this.outputs.push(output);
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/prerenderx",
3
- "version": "2.3.47",
3
+ "version": "2.3.48",
4
4
  "description": "PrerenderX",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/prerenderx",
@@ -58,8 +58,11 @@ class OptionRender {
58
58
  const variables = getRelatedVariablesValues(this.id, this.index, outputReference.variables, this.ovc, this.references)
59
59
  let output = parseOutputWithVariables(option.meta.output, variables, autonums)
60
60
 
61
+ // Removing spaces between tags
62
+ output = output.replace(/>([\n\s]+)</g, '><');
63
+
61
64
  // Replacing \n with line-break
62
- output = output.replace(/\n/g, '<br />')
65
+ // output = output.replace(/\n/g, '<br />')
63
66
 
64
67
  // Cleaning \xA0
65
68
  output = output.replace(/\xA0/g, ' ')