Skip to content

Commit

Permalink
Fix awesomecv spacing for omitted why in detailed_entries()
Browse files Browse the repository at this point in the history
Resolves #144
  • Loading branch information
mitchelloharawild committed Jan 10, 2021
1 parent cf76529 commit 17d512d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/awesomecv.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ awesome_cv_entries <- new_entry_formats(
detailed = function(what, when, with, where, why){
why <- lapply(why, function(x) {
if(length(x) == 0) {
"\\vspace{-4mm}"
"{}\\vspace{-4.0mm}"
} else {
paste(c("\\begin{cvitems}", paste("\\item", x), "\\end{cvitems}"),
paste(c("{\\begin{cvitems}", paste("\\item", x), "\\end{cvitems}}"),
collapse = "\n")
}
})

paste(c(
"\\begin{cventries}",
glue_alt("\t\\cventry{<<what>>}{<<with>>}{<<where>>}{<<when>>}{<<why>>}"),
glue_alt("\t\\cventry{<<what>>}{<<with>>}{<<where>>}{<<when>>}<<why>>"),
"\\end{cventries}"
), collapse = "\n")
}
Expand Down

0 comments on commit 17d512d

Please sign in to comment.