Open srnnkls opened 4 years ago
digging a bit doing source code archeology, I found that this newline was added in this commit https://github.com/yihui/knitr/commit/3dadff208a4c3c746a0bf5509cd5642bfbd7b022 7 years ago with message
add an empty line before the table; this is to make sure hook_movecode{} works well
and this was before adding some new lines above it in the longtable environment.
I guess only a few tests can tell us if this is still an issue or not...
Hope it helps decide if this \n
is needed or not.
When calling cable with
format = latex
the actual latex output is preceded by a newline. I can write a wrapper that strips it but was curious: Is this intentional?By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.