@legalplace/prerenderx 2.3.47 → 2.3.49
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(
|
|
42
|
+
output = output.replace(/>([\n\s]+)</g, '><');
|
|
43
43
|
output = output.replace(/\xA0/g, ' ');
|
|
44
44
|
this.outputs.push(output);
|
|
45
45
|
}
|
package/dist/libs/Prerender.d.ts
CHANGED
package/dist/libs/Prerender.js
CHANGED
|
@@ -59,7 +59,8 @@ var Prerender = (function () {
|
|
|
59
59
|
}
|
|
60
60
|
else {
|
|
61
61
|
_this.documentsIndex[hash] = {
|
|
62
|
-
name:
|
|
62
|
+
name: document.name,
|
|
63
|
+
slug: documentName,
|
|
63
64
|
pdf: ((_a = documentParams === null || documentParams === void 0 ? void 0 : documentParams.formats) === null || _a === void 0 ? void 0 : _a.pdf) === undefined ? true : documentParams.formats.pdf,
|
|
64
65
|
docx: ((_b = documentParams === null || documentParams === void 0 ? void 0 : documentParams.formats) === null || _b === void 0 ? void 0 : _b.docx) === undefined ? true : documentParams.formats.docx
|
|
65
66
|
};
|
package/package.json
CHANGED
package/src/libs/OptionRender.ts
CHANGED
|
@@ -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, ' ')
|
package/src/libs/Prerender.ts
CHANGED
|
@@ -11,6 +11,7 @@ import FillPdfForm from './FillPdfForm'
|
|
|
11
11
|
|
|
12
12
|
type DocumentOutputIndex = {
|
|
13
13
|
name: string
|
|
14
|
+
slug: string
|
|
14
15
|
pdf: boolean
|
|
15
16
|
docx: boolean
|
|
16
17
|
}
|
|
@@ -115,7 +116,8 @@ class Prerender {
|
|
|
115
116
|
}
|
|
116
117
|
} else {
|
|
117
118
|
this.documentsIndex[hash] = {
|
|
118
|
-
name:
|
|
119
|
+
name: document.name,
|
|
120
|
+
slug: documentName,
|
|
119
121
|
pdf: documentParams?.formats?.pdf === undefined ? true : documentParams.formats.pdf,
|
|
120
122
|
docx: documentParams?.formats?.docx === undefined ? true : documentParams.formats.docx
|
|
121
123
|
}
|