From: Thomas Berezansky Date: Mon, 7 Nov 2011 22:28:02 +0000 (-0500) Subject: Fix vanishing whitespace in marc editor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fc8925034444d844d6028d0984a2d3f971f2d746;p=evergreen%2Fmasslnc.git Fix vanishing whitespace in marc editor XML.ignoreWhitespace and XML.prettyPrinting cause whitespace to vanish. So disable them at the top of marcedit.js. Signed-off-by: Thomas Berezansky Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index 066a0845d7..9663e72adc 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -18,6 +18,10 @@ * 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();