commit cb656c9456569bd58830b0ed6676a55d3351c981
parent 544c8a1fa7410bfd840d4f2beba8a7fbb1f5a3c2
Author: Frank <biercenator@gmail.com>
Date: Mon, 13 Feb 2012 16:44:06 +0800
Upgrade citeproc-js to version 1.0.280
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js
@@ -2133,7 +2133,7 @@ CSL.DateParser = function () {
};
CSL.Engine = function (sys, style, lang, forceLang) {
var attrs, langspec, localexml, locale;
- this.processor_version = "1.0.279";
+ this.processor_version = "1.0.280";
this.csl_version = "1.0";
this.sys = sys;
this.sys.xml = new CSL.System.Xml.Parsing();
@@ -10847,6 +10847,9 @@ CSL.Output.Formats.prototype.html = {
};
CSL.Output.Formats.prototype.text = {
"text_escape": function (text) {
+ if (!text) {
+ text = "";
+ }
return text;
},
"bibstart": "",
@@ -10898,6 +10901,9 @@ CSL.Output.Formats.prototype.text = {
};
CSL.Output.Formats.prototype.rtf = {
"text_escape": function (text) {
+ if (!text) {
+ text = "";
+ }
return text
.replace(/([\\{}])/g, "\\$1", "g")
.replace(CSL.SUPERSCRIPTS_REGEXP,