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:
@@ -980,6 +980,8 @@ function BatchCommand(text) {
|
|||||||
// for text, we do a whitespace trim
|
// for text, we do a whitespace trim
|
||||||
if (node.nodeType == 3) {
|
if (node.nodeType == 3) {
|
||||||
node.nodeValue = node.nodeValue.replace(/^\s+|\s+$/g, "");
|
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;
|
if (node.nodeType != 1) return;
|
||||||
var doc = node.ownerDocument;
|
var doc = node.ownerDocument;
|
||||||
|
|||||||
Reference in New Issue
Block a user