Clean up elements as we serialize them to text. Remove default value of display attribute

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@779 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2009-10-08 17:02:23 +00:00
parent bb38edf3db
commit 3459ea9a86

View File

@@ -581,6 +581,8 @@ function BatchCommand(text) {
element.removeAttribute('rx')
if (element.getAttribute('ry') == '0')
element.removeAttribute('ry')
if (element.getAttribute('display') == 'inline')
element.removeAttribute('display');
svgroot.unsuspendRedraw(handle);
};
@@ -885,6 +887,7 @@ function BatchCommand(text) {
var svgToString = function(elem, indent) {
var out = new Array();
if (elem) {
cleanupElement(elem);
var attrs = elem.attributes;
var attr;
var i;