diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 356659bdd..1ffc7d07d 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -24,7 +24,7 @@ */ var CSL = { - PROCESSOR_VERSION: "1.1.180", + PROCESSOR_VERSION: "1.1.181", CONDITION_LEVEL_TOP: 1, CONDITION_LEVEL_BOTTOM: 2, PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/, @@ -3272,6 +3272,13 @@ CSL.Doppeler = function(rexStr, stringMangler) { }; } var split = str.split(splitRex); + for (var i=match.length-1; i> -1; i--) { + var tag = match[i]; + if (tag === "\'" && split[i+1].length > 0) { + split[i+1] = match[i] + split[i+1]; + match[i] = ""; + } + } return { tags: match, strings: split,