Merge pull request #174 from boschDev/master

Fix attrs loop in yXmlText
This commit is contained in:
Kevin Jahns 2019-10-15 17:19:30 +02:00 committed by GitHub
commit 74d1a31f49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ export class YXmlText extends YText {
const node = nestedNodes[i]
str += `<${node.nodeName}`
for (let j = 0; j < node.attrs.length; j++) {
const attr = node.attrs[i]
const attr = node.attrs[j]
str += ` ${attr.key}="${attr.value}"`
}
str += '>'