diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 8d29ed71..8a6b92bb 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1566,8 +1566,8 @@ function BatchCommand(text) { if (attrVal != "" && $.inArray(attr.localName, ['width','height','xmlns','x','y','viewBox','id','overflow']) == -1) { - out.push(' '); if(!attr.namespaceURI || nsMap[attr.namespaceURI]) { + out.push(' '); out.push(attr.nodeName); out.push("=\""); out.push(attrVal); out.push("\""); }