Skip to content

Commit

Permalink
Set space after de' when used as dropping particle
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Jun 22, 2019
1 parent f11c23e commit f6df4d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util_names_render.js
Expand Up @@ -542,7 +542,9 @@ CSL.NameOutput.prototype._renderOnePersonalName = function (value, pos, i, j) {
}
} else { // plain vanilla
if (name["dropping-particle"] && name.family && !name["non-dropping-particle"]) {
if (["'","\u02bc","\u2019","-"].indexOf(name["dropping-particle"].slice(-1)) > -1) {
var dp = name["dropping-particle"];
var apostrophes = ["'","\u02bc","\u2019","-"];
if (apostrophes.indexOf(dp.slice(-1)) > -1 && dp.slice(0, -1) !== "de") {
family = this._join([dropping_particle, family], "");
dropping_particle = false;
}
Expand Down

0 comments on commit f6df4d6

Please sign in to comment.