commit 0e9505a2c5137cb054c46f3f6d12bee12ac79300
parent 8bebd77a578d368f132bbcd4732040ba97e1d4eb
Author: Frank <biercenator@gmail.com>
Date: Tue, 17 Jan 2012 19:49:47 +0800
Upgrade citeproc-js to version 1.0.262.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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);
}