Fixed issue 309: Opening the source code editor breaks the ungrouping of rotated groups

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@948 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2009-11-16 18:06:30 +00:00
parent e9ff3cf682
commit b0d826a24b

View File

@@ -980,6 +980,8 @@ function BatchCommand(text) {
// for text, we do a whitespace trim
if (node.nodeType == 3) {
node.nodeValue = node.nodeValue.replace(/^\s+|\s+$/g, "");
// Remove empty text nodes
if(!node.nodeValue.length) node.parentNode.removeChild(node);
}
if (node.nodeType != 1) return;
var doc = node.ownerDocument;