Fix vanishing whitespace in marc editor
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 7 Nov 2011 22:28:02 +0000 (17:28 -0500)
committerJason Etheridge <jason@esilibrary.com>
Tue, 8 Nov 2011 20:12:03 +0000 (15:12 -0500)
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>
Open-ILS/xul/staff_client/server/cat/marcedit.js

index 066a084..9663e72 100644 (file)
  * 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();