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:
@@ -581,6 +581,8 @@ function BatchCommand(text) {
|
|||||||
element.removeAttribute('rx')
|
element.removeAttribute('rx')
|
||||||
if (element.getAttribute('ry') == '0')
|
if (element.getAttribute('ry') == '0')
|
||||||
element.removeAttribute('ry')
|
element.removeAttribute('ry')
|
||||||
|
if (element.getAttribute('display') == 'inline')
|
||||||
|
element.removeAttribute('display');
|
||||||
svgroot.unsuspendRedraw(handle);
|
svgroot.unsuspendRedraw(handle);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -885,6 +887,7 @@ function BatchCommand(text) {
|
|||||||
var svgToString = function(elem, indent) {
|
var svgToString = function(elem, indent) {
|
||||||
var out = new Array();
|
var out = new Array();
|
||||||
if (elem) {
|
if (elem) {
|
||||||
|
cleanupElement(elem);
|
||||||
var attrs = elem.attributes;
|
var attrs = elem.attributes;
|
||||||
var attr;
|
var attr;
|
||||||
var i;
|
var i;
|
||||||
|
|||||||
Reference in New Issue
Block a user