closes #1779: Some CSLs can only be parsed once
Restore global XML properties when Zotero.Cite.makeFormattedBibliography() is complete. At some point, we should probably modify our existing uses of E4X not to rely on these properties being set to their defaults.
This commit is contained in:
parent
0a4fe5725e
commit
ddcdfb6961
|
@ -286,7 +286,8 @@ Zotero.Cite.makeFormattedBibliography = function(cslEngine, format) {
|
|||
if(entrySpacing == NaN) throw "Invalid entryspacing";
|
||||
if(lineSpacing == NaN) throw "Invalid linespacing";
|
||||
|
||||
default xml namespace = '';
|
||||
default xml namespace = ''; with({});
|
||||
try {
|
||||
XML.prettyPrinting = false;
|
||||
XML.ignoreWhitespace = false;
|
||||
var xml = new XML(html);
|
||||
|
@ -359,6 +360,10 @@ Zotero.Cite.makeFormattedBibliography = function(cslEngine, format) {
|
|||
}
|
||||
|
||||
//Zotero.debug(xml);
|
||||
} finally {
|
||||
XML.prettyPrinting = true;
|
||||
XML.ignoreWhitespace = true;
|
||||
}
|
||||
|
||||
return xml.toXMLString();
|
||||
} else if(format == "text") {
|
||||
|
|
Loading…
Reference in New Issue
Block a user