We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44c223e commit ce5ad09Copy full SHA for ce5ad09
R/format_citation.R
@@ -65,8 +65,9 @@ cite_citation <- function(citation) {
65
#' @rdname format_citation
66
#' @export
67
clean_citation <- function(citation) {
68
- if ("citation" %in% class(citation)) {
69
- citation <- format(citation)[2]
+ if (isTRUE(inherits(citation, "citation"))) {
+ citation <- format(citation,
70
+ style = "text")
71
}
72
citation <- unlist(strsplit(citation, "\n"))
73
citation <- paste(citation, collapse = "SPLIT")
0 commit comments