From f629418dc2a2c68656bee8bfd8f4d2e54ba42e67 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 12 Feb 2011 20:19:31 +0000 Subject: [PATCH] don't turn off "ignoreWhitespace" before serializing xml string --- chrome/content/zotero/xpcom/cite.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index da2edc746..95c04ad68 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -346,6 +346,7 @@ Zotero.Cite.makeFormattedBibliography = function(cslEngine, format) { if(entrySpacing == NaN) throw "Invalid entryspacing"; if(lineSpacing == NaN) throw "Invalid linespacing"; + var str; default xml namespace = ''; with({}); try { XML.prettyPrinting = false; @@ -420,12 +421,13 @@ Zotero.Cite.makeFormattedBibliography = function(cslEngine, format) { } //Zotero.debug(xml); + str = xml.toXMLString(); } finally { XML.prettyPrinting = true; XML.ignoreWhitespace = true; } - return xml.toXMLString(); + return str; } else if(format == "text") { return bib[0].bibstart+bib[1].join("")+bib[0].bibend; } else if(format == "rtf") {