parent
9941bafa74
commit
e1d41f6025
1 changed files with 5 additions and 2 deletions
|
@ -112,12 +112,15 @@ export class V2XmlFormatter implements XmlFormatter {
|
||||||
|
|
||||||
// exiting StartTag or StartTag.StartTagName, entering Text
|
// exiting StartTag or StartTag.StartTagName, entering Text
|
||||||
else if ((location === Location.StartTag || location === Location.StartTagName) && cc === ">") {
|
else if ((location === Location.StartTag || location === Location.StartTagName) && cc === ">") {
|
||||||
// if this was a self-closing tag, we need to decrement the indent level
|
// if this was a self-closing tag, we need to decrement the indent level and add a newLine
|
||||||
if (pc === "/") {
|
if (pc === "/") {
|
||||||
indentLevel--;
|
indentLevel--;
|
||||||
|
output += `>${options.newLine}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
output += ">";
|
output += ">";
|
||||||
|
}
|
||||||
|
|
||||||
lastNonTextLocation = location;
|
lastNonTextLocation = location;
|
||||||
location = Location.Text;
|
location = Location.Text;
|
||||||
|
|
Loading…
Add table
Reference in a new issue