- closes #1778: Zotero.Cite.makeFormattedBibliography throws an error when citeproc-js output contains
- 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.
This commit is contained in:
parent
8deb7043fc
commit
eee772d893
1 changed files with 2 additions and 2 deletions
|
@ -1732,7 +1732,7 @@ CSL.DateParser = function (txt) {
|
||||||
};
|
};
|
||||||
CSL.Engine = function (sys, style, lang, forceLang) {
|
CSL.Engine = function (sys, style, lang, forceLang) {
|
||||||
var attrs, langspec, localexml, locale;
|
var attrs, langspec, localexml, locale;
|
||||||
this.processor_version = "1.0.108";
|
this.processor_version = "1.0.109";
|
||||||
this.csl_version = "1.0";
|
this.csl_version = "1.0";
|
||||||
this.sys = sys;
|
this.sys = sys;
|
||||||
this.sys.xml = new CSL.System.Xml.Parsing();
|
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 = function () {};
|
||||||
CSL.Output.Formats.prototype.html = {
|
CSL.Output.Formats.prototype.html = {
|
||||||
"text_escape": function (text) {
|
"text_escape": function (text) {
|
||||||
return text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(" ", " ", "g");
|
return text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(" ", "  ", "g");
|
||||||
},
|
},
|
||||||
"bibstart": "<div class=\"csl-bib-body\">\n",
|
"bibstart": "<div class=\"csl-bib-body\">\n",
|
||||||
"bibend": "</div>",
|
"bibend": "</div>",
|
||||||
|
|
Loading…
Reference in a new issue