www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 040fa318877a4d22bb8f692f7410e7939398d583
parent 87199f6011830f1cd68cd685ef81ff94a26728e2
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 19 Dec 2012 21:00:10 -0500

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.

Diffstat:
Mchrome/content/zotero/xpcom/cite.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js @@ -265,7 +265,7 @@ Zotero.Cite.makeFormattedBibliography = function(cslEngine, format) { if(!co) continue; output.push(' <span class="Z3988" title="'+ co.replace("&", "&amp;", "g").replace("<", "&lt;", "g").replace(">", "&gt;", "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;