From 0e9505a2c5137cb054c46f3f6d12bee12ac79300 Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 17 Jan 2012 19:49:47 +0800 Subject: [PATCH] Upgrade citeproc-js to version 1.0.262. --- chrome/content/zotero/xpcom/citeproc.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 82c4fad94..756c8569c 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -121,7 +121,6 @@ var CSL = { MINIMAL_NAME_FIELDS: ["literal", "family"], SWAPPING_PUNCTUATION: [".", "!", "?", ":",","], TERMINAL_PUNCTUATION: [":", ".", ";", "!", "?", " "], - SPLICE_PUNCTUATION: [".", "!", "?", ":", ";", ","], NONE: 0, NUMERIC: 1, POSITION: 2, @@ -1980,7 +1979,7 @@ CSL.DateParser = function () { }; CSL.Engine = function (sys, style, lang, forceLang) { var attrs, langspec, localexml, locale; - this.processor_version = "1.0.261"; + this.processor_version = "1.0.262"; this.csl_version = "1.0"; this.sys = sys; this.sys.xml = new CSL.System.Xml.Parsing(); @@ -3721,6 +3720,8 @@ CSL.getCitationCluster = function (inputList, citationID) { var tmpstr = composite.pop(); if (tmpstr && tmpstr.slice(0, 1) === ",") { objects.push(tmpstr); + } else if ("string" == typeof objects.slice(-1)[0] && objects.slice(-1)[0].slice(-1) === ",") { + objects.push(" " + tmpstr) } else if (tmpstr) { objects.push(txt_esc(this.tmp.splice_delimiter) + tmpstr); }