@legalplace/prerenderx 2.3.45 → 2.3.47

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.
@@ -40,7 +40,6 @@ var OptionRender = (function () {
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
42
  output = output.replace(/\n/g, '<br />');
43
- output = output.replace(/<p><\/p>/g, '<br />');
44
43
  output = output.replace(/\xA0/g, ' ');
45
44
  this.outputs.push(output);
46
45
  }
@@ -24,7 +24,6 @@ exports.getRelatedVariablesValues = function (optionId, index, variables, ovc, r
24
24
  return '';
25
25
  });
26
26
  var currentVariableValue = cleanValues.length === 1 ? cleanValues[0] : cleanValues.join(', ');
27
- currentVariableValue = currentVariableValue.replace(/\n/g, '<br />');
28
27
  variablesValues[currentVariableId] = currentVariableValue;
29
28
  });
30
29
  return variablesValues;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/prerenderx",
3
- "version": "2.3.45",
3
+ "version": "2.3.47",
4
4
  "description": "PrerenderX",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/prerenderx",
@@ -61,9 +61,6 @@ class OptionRender {
61
61
  // Replacing \n with line-break
62
62
  output = output.replace(/\n/g, '<br />')
63
63
 
64
- // Replacing empty paragraphs with line-break
65
- output = output.replace(/<p><\/p>/g, '<br />')
66
-
67
64
  // Cleaning \xA0
68
65
  output = output.replace(/\xA0/g, ' ')
69
66
 
@@ -37,10 +37,7 @@ export const getRelatedVariablesValues: getRelatedVarsT = (optionId, index, vari
37
37
  })
38
38
 
39
39
  // Joining multiple variables if needed
40
- let currentVariableValue = cleanValues.length === 1 ? cleanValues[0] : cleanValues.join(', ')
41
-
42
- // Replacing \n with <br /> tags
43
- currentVariableValue = currentVariableValue.replace(/\n/g, '<br />')
40
+ const currentVariableValue = cleanValues.length === 1 ? cleanValues[0] : cleanValues.join(', ')
44
41
 
45
42
  // Setting variable value
46
43
  variablesValues[currentVariableId] = currentVariableValue