xnl-core 0.1.3 → 0.1.4
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.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -711,9 +711,9 @@ function serializeTextElement(node, state) {
|
|
|
711
711
|
` ?${marker}>`
|
|
712
712
|
].join("");
|
|
713
713
|
const text = node.text ?? "";
|
|
714
|
-
const
|
|
715
|
-
const
|
|
716
|
-
return
|
|
714
|
+
const currentPad = pad(state);
|
|
715
|
+
const alignedText = text.replace(/\r?\n/g, (lineBreak) => `${lineBreak}${currentPad}`);
|
|
716
|
+
return `${currentPad}${open}${alignedText}</?${marker}>`;
|
|
717
717
|
}
|
|
718
718
|
function serializeDataElement(node, state) {
|
|
719
719
|
const open = [
|