Comparing version 3.1.1 to 3.1.2
@@ -18,3 +18,7 @@ 'use strict'; | ||
if (el.children.length > 0) { | ||
const children_length = el.children.length; | ||
if (el.children.length === 1 && typeof el.children[0] === "string") { | ||
s += `>${el.children[0]}</${el.name}>`; | ||
} else if (children_length > 0) { | ||
s += ">"; | ||
@@ -21,0 +25,0 @@ for (const child of el.children) { |
{ | ||
"name": "ltx", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "<xml for=\"JavaScript\">", | ||
@@ -5,0 +5,0 @@ "author": "Astro", |
@@ -16,3 +16,7 @@ import { escapeXML, escapeXMLText } from "./escape.js"; | ||
if (el.children.length > 0) { | ||
const children_length = el.children.length | ||
if (el.children.length === 1 && typeof el.children[0] === "string") { | ||
s += `>${el.children[0]}</${el.name}>`; | ||
} else if (children_length > 0) { | ||
s += ">"; | ||
@@ -19,0 +23,0 @@ for (const child of el.children) { |
67514
2349
45