Skip to content

Commit 3df019a

Browse files
committed
Use serial comma in author lists
1 parent d4d53ea commit 3df019a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/05makeBibLatex.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ MakeBibLaTeX <- function(docstyle = "text", authortitle = FALSE) {
218218
out <- paste(paste(out, paste0(vapply(res[-c(1L, length(res))],
219219
shortName, ""),
220220
collapse = ", "), sep = ', '),
221-
shortName(res[length(res)]), sep = ' and ')
221+
shortName(res[length(res)]), sep = ', and ')
222222
}
223223
}
224224
}

R/07makeBibLatexAuthoryear.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ MakeAuthorYear <- function(docstyle = "text"){
159159
}else{
160160
out <- paste(paste(out, paste0(vapply(res[-c(1L, length(res))],
161161
shortName, ""),
162-
collapse = ", "), sep = ', '),
163-
shortName(res[length(res)]), sep = ' and ')
162+
collapse = ", "), sep = ', '),
163+
shortName(res[length(res)]), sep = ', and ')
164164
}
165165
}
166166
}

0 commit comments

Comments
 (0)