Skip to content

Commit

Permalink
Fixed bib path for Windows OS
Browse files Browse the repository at this point in the history
Resolves #83
  • Loading branch information
mitchelloharawild committed Sep 22, 2019
1 parent eb0062e commit 586a8dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
# vitae (development version)

## Bug fixes

* Fixed issue with `bibliography_entries()` not working on Windows.

# vitae 0.2.0

## Breaking changes

* Simplified `bibliography_entries` entries by removing `title` and `sorting`
arguments. The title can be included using markdown, and sorting now respects
the order of the tibble created by the function.

## Improvements

* Added theme support for `moderncv`: classic, banking, oldstyle, fancy.
* Added `latexcv` template using the classic theme.
* Added `docname` to change the document name (@chrisumphlett, #42).
Expand Down
2 changes: 1 addition & 1 deletion R/bibliography.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bibliography_entries <- function(file, title = NULL, sorting = NULL,
out <- dplyr::as_tibble(bib) %>%
mutate(surnames = family)
structure(mutate(out, key = unlist(bib$key)),
file = normalizePath(file),
file = normalizePath(file, winslash = .Platform$file.sep),
startlabel = startlabel,
endlabel = endlabel,
preserve = "key",
Expand Down

0 comments on commit 586a8dd

Please sign in to comment.