XML.ignoreWhitespace and XML.prettyPrinting cause whitespace to vanish.
So disable them at the top of marcedit.js.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
* GNU General Public License for more details.
*
*/
+// We need whitespace in MARC fields, so disable ignoring it
+XML.ignoreWhitespace = false;
+// Pretty printing kills whitespace too, so disable it.
+XML.prettyPrinting = false;
var xmlDeclaration = /^<\?xml version[^>]+?>/;
var serializer = new XMLSerializer();