From fc8925034444d844d6028d0984a2d3f971f2d746 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Mon, 7 Nov 2011 17:28:02 -0500 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/server/cat/marcedit.js | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.11.0