commit f629418dc2a2c68656bee8bfd8f4d2e54ba42e67
parent b9af6a71a0f7983cb4b0b761744563fe1eefd5ba
Author: Simon Kornblith <simon@simonster.com>
Date: Sat, 12 Feb 2011 20:19:31 +0000
don't turn off "ignoreWhitespace" before serializing xml string
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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") {