Skip to content
Snippets Groups Projects
Unverified Commit ff37db08 authored by François Michonneau's avatar François Michonneau
Browse files

remove extra line return in knitr output

parent 9bfebc4d
Branches
Tags
No related merge requests found
......@@ -27,12 +27,14 @@ hook_in <- function(x, options) {
}
hook_out <- function(x, options) {
x <- gsub("\n$", "", x)
stringr::str_c("\n\n~~~\n",
paste0(x, collapse="\n"),
"\n~~~\n{: .output}\n\n")
}
hook_error <- function(x, options) {
x <- gsub("\n$", "", x)
stringr::str_c("\n\n~~~\n",
paste0(x, collapse="\n"),
"\n~~~\n{: .error}\n\n")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment