-
-
Notifications
You must be signed in to change notification settings - Fork 977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking a page at the final line of the page adds a blank page in word_document #1752
Comments
What is your version of Office ? I can't reproduce on my windows 10 with Office 2016. There is no blank page before the line in your example. 🤔 |
I am also using Windows 10 and Office 2016. |
Here's the docx rendered by my example Rmd. |
Thanks for the report. Would you take another screenshot with formatting marks? |
Ok I need to add 3 more "1st page" to reproduce. Now I see what you encounter. Currently, the pagebreak feature is completly inspired from the pagebreak pandoc lua filter that works only by finding For now, I think the word document would need to be manually post process if a blank page is created in the very specific case you encountered. Otherwise, |
Ok I manage to write a lua script that work with inline
Currently, in the pagebreak filter, the code to create the pagebreak in the different format is inserted as pandoc RawBlock. I don't know if RawInline will work for every format and it needs to be tested thoroughly. Or we just decide to activate RawInline insertion for docx format. I have done that for now. |
Currently
\newpage
must be a paragraph composed only by itself likeThis may add a blank page in
word_document
when the paragraph before breaking page reaches at the bottom of a page.It would be nice if pagebreak can be done as a part of paragraph.
For example by
reprex
xfun::session_info('rmarkdown')
By filing an issue to this repo, I promise that
xfun::session_info('rmarkdown')
. 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('rstudio/rmarkdown')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: