Open crubb opened 7 years ago
This would also solve the problem of templates that start with an empty line. This is what I see with the CRAN version, the relevant code appears to be fixed in the dev version:
whisker::whisker.render(c("First", "", "Second"))
#> [1] "First\n\nSecond"
whisker::whisker.render(c("", "First", "Second"))
#> [1] ""
Created on 2019-08-19 by the reprex package (v0.3.0)
Use case: usethis::use_template()
.
Hey,
could you consider pushing 0.3-3 to CRAN?
It would be so nice to have
strict = FALSE
available by default without any editing in johnmyleswhite/ProjectTemplate. See sql.reader.R#L336.Pretty please? ;)
Best regards, crubb