Skip to content
Snippets Groups Projects
Commit 4b00e163 authored by Jacob Benz's avatar Jacob Benz
Browse files

Fix lb taking up to much space by removing unnecessary empty-space inside

parent bfd3be63
Branches
No related tags found
No related merge requests found
......@@ -412,7 +412,11 @@ class XML2CWRC {
if (node.childNodes.length === 0) {
openingTagString += '>';
closingTagString = `&#65279;</${htmlTag}>`; //Change \uFEFF to &#65279; because \uFEFF does sometimes not work as intended
if (canContainText) {
closingTagString = `&#65279;</${htmlTag}>`; //Change \uFEFF to &#65279; because \uFEFF does sometimes not work as intended
} else {
closingTagString = `</${htmlTag}>`; //Do not put a non-printable space inside Tag, if Tag is not supposed to be editable (this is the only reason it is there in the first place, to have a space to place the cursor.)
}
} else {
openingTagString += '>';
closingTagString = `</${htmlTag}>`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment