Since we still use E4X, this is a hack to make sure the span tag has a separate close tag.
This commit is contained in:
Simon Kornblith 2012-12-19 21:00:10 -05:00
parent 87199f6011
commit 040fa31887

View File

@ -265,7 +265,7 @@ Zotero.Cite.makeFormattedBibliography = function(cslEngine, format) {
if(!co) continue; if(!co) continue;
output.push(' <span class="Z3988" title="'+ output.push(' <span class="Z3988" title="'+
co.replace("&", "&amp;", "g").replace("<", "&lt;", "g").replace(">", "&gt;", "g")+ co.replace("&", "&amp;", "g").replace("<", "&lt;", "g").replace(">", "&gt;", "g")+
'"/>\n'); '"/><spanclosetaghack/>\n');
} catch(e) { } catch(e) {
Zotero.logError(e); Zotero.logError(e);
} }
@ -378,7 +378,7 @@ Zotero.Cite.makeFormattedBibliography = function(cslEngine, format) {
} }
//Zotero.debug(xml); //Zotero.debug(xml);
str = xml.toXMLString(); str = xml.toXMLString().replace("/><spanclosetaghack/>", "></span>", "g");
} finally { } finally {
XML.prettyPrinting = true; XML.prettyPrinting = true;
XML.ignoreWhitespace = true; XML.ignoreWhitespace = true;