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.cjs
CHANGED
|
@@ -713,9 +713,9 @@ function serializeTextElement(node, state) {
|
|
|
713
713
|
` ?${marker}>`
|
|
714
714
|
].join("");
|
|
715
715
|
const text = node.text ?? "";
|
|
716
|
-
const
|
|
717
|
-
const
|
|
718
|
-
return
|
|
716
|
+
const currentPad = pad(state);
|
|
717
|
+
const alignedText = text.replace(/\r?\n/g, (lineBreak) => `${lineBreak}${currentPad}`);
|
|
718
|
+
return `${currentPad}${open}${alignedText}</?${marker}>`;
|
|
719
719
|
}
|
|
720
720
|
function serializeDataElement(node, state) {
|
|
721
721
|
const open = [
|