diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 82c4fad94e..756c8569c8 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); }