Fix issue reported at http://forums.zotero.org/discussion/26922/
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:
parent
87199f6011
commit
040fa31887
|
@ -265,7 +265,7 @@ Zotero.Cite.makeFormattedBibliography = function(cslEngine, format) {
|
|||
if(!co) continue;
|
||||
output.push(' <span class="Z3988" title="'+
|
||||
co.replace("&", "&", "g").replace("<", "<", "g").replace(">", ">", "g")+
|
||||
'"/>\n');
|
||||
'"/><spanclosetaghack/>\n');
|
||||
} catch(e) {
|
||||
Zotero.logError(e);
|
||||
}
|
||||
|
@ -378,7 +378,7 @@ Zotero.Cite.makeFormattedBibliography = function(cslEngine, format) {
|
|||
}
|
||||
|
||||
//Zotero.debug(xml);
|
||||
str = xml.toXMLString();
|
||||
str = xml.toXMLString().replace("/><spanclosetaghack/>", "></span>", "g");
|
||||
} finally {
|
||||
XML.prettyPrinting = true;
|
||||
XML.ignoreWhitespace = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user