From cb656c9456569bd58830b0ed6676a55d3351c981 Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 13 Feb 2012 16:44:06 +0800 Subject: [PATCH] Upgrade citeproc-js to version 1.0.280 --- chrome/content/zotero/xpcom/citeproc.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index fc64f51060..be9a00e22d 100644 --- 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,