Skip to content

Commit

Permalink
Add encoding = getOption("citr.encoding") to readLines()
Browse files Browse the repository at this point in the history
  • Loading branch information
GegznaV committed Mar 15, 2020
1 parent 6c5a1d9 commit caa8d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/insert_citation.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ insert_citation <- function(
stop("More than one parent document found. See getOption('citr.parent_documents').")
}

parent_document <- readLines(parents_path[parents], warn = FALSE)
parent_document <- readLines(parents_path[parents], warn = FALSE, encoding = getOption("citr.encoding"))
parent_yaml_delimiters <- grep("^(---|\\.\\.\\.)\\s*$", parent_document)

yaml_bib_file <- get_bib_from_yaml(
Expand Down

0 comments on commit caa8d5e

Please sign in to comment.