Fixing xml output after removing text with white space
[fnpeditor.git] / modules / documentCanvas / canvas / canvas.js
index 8882c1c..19c2a3f 100644 (file)
@@ -320,8 +320,9 @@ $.extend(Canvas.prototype, {
     },
 
     toXML: function() {
-        var parent = $('<div>');
-        this.doc().toXML(parent, 0)
+        var parent = $('<div>'),
+            parts = this.doc().toXML(0);
+        parent.append(parts);
         return parent.html();
     }
 });