Break after self-closing trkpt without ele (beeline)
This commit is contained in:
parent
c3db03d1e3
commit
da2043fb47
1 changed files with 5 additions and 1 deletions
|
|
@ -25,7 +25,11 @@ BR.Xml = {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (singleLineTagList.includes(tag)) {
|
if (singleLineTagList.includes(tag)) {
|
||||||
singleLineTag = tag;
|
const closeIndex = xml.indexOf('>', match.index + 1);
|
||||||
|
const selfClosing = xml.charAt(closeIndex - 1) === '/';
|
||||||
|
if (!selfClosing) {
|
||||||
|
singleLineTag = tag;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
let endIndex = match.index + 1;
|
let endIndex = match.index + 1;
|
||||||
lines.push(xml.substring(startIndex, endIndex));
|
lines.push(xml.substring(startIndex, endIndex));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue