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") {