Skip to content

Commit 76e52f4

Browse files
committed
Fix strip target element inconsistent
1 parent 7ad9b31 commit 76e52f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/layout/Project.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
let xmlDoc = exportXliff(files);
6868
6969
if(exportOptions.stripEmptyTarget) {
70-
for(let targetElem of xmlDoc.getElementsByTagName("target")) {
70+
for(let targetElem of [...xmlDoc.getElementsByTagName("target")]) {
71+
console.log(targetElem.textContent + "_" + targetElem.textContent.length)
7172
if(targetElem.textContent.length == 0) targetElem.remove();
7273
}
7374
}

0 commit comments

Comments
 (0)