www

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

commit eee772d893a1f31729460bd062f7126b0d51b0a6
parent 8deb7043fcc4c1a9cc2a86bd18ed1369bb8747a3
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun,  6 Feb 2011 21:51:07 +0000

- closes #1778: Zotero.Cite.makeFormattedBibliography throws an error when citeproc-js output contains &nbsp;
- update to citeproc-js 1.0.109

From Frank's release notes:

Use numeric rather than named entities when producing HTML, to avoid
error if the output is processed as XML in an environment in which
named entities have not been declared.



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

diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js @@ -1732,7 +1732,7 @@ CSL.DateParser = function (txt) { }; CSL.Engine = function (sys, style, lang, forceLang) { var attrs, langspec, localexml, locale; - this.processor_version = "1.0.108"; + this.processor_version = "1.0.109"; this.csl_version = "1.0"; this.sys = sys; this.sys.xml = new CSL.System.Xml.Parsing(); @@ -8215,7 +8215,7 @@ CSL.Output.Formatters.serializeItemAsRdfA = function (Item) { CSL.Output.Formats = function () {}; CSL.Output.Formats.prototype.html = { "text_escape": function (text) { - return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(" ", "&nbsp; ", "g"); + return text.replace(/&/g, "&#38;").replace(/</g, "&#60;").replace(/>/g, "&#62;").replace(" ", "&#160; ", "g"); }, "bibstart": "<div class=\"csl-bib-body\">\n", "bibend": "</div>",