Skip to content

Add a new empty line before adding shiny prerendered context dependencies - #2337

Merged
cderv merged 3 commits into
mainfrom
fix/shinyrmd-eof
Mar 22, 2022
Merged

cderv merged 3 commits into
mainfrom
fix/shinyrmd-eof

Conversation

@cderv

@cderv cderv commented Mar 22, 2022

Copy link
Copy Markdown
Collaborator

This fixes #2336 by making sure an empty line is added before any script dependencies.

@cderv

cderv commented Mar 22, 2022

Copy link
Copy Markdown
Collaborator Author

@gadenbuie I think this would fix it and is quite simple. Other solution would be to add an empty line first in shiny_prerendered_append_context() but that would seperated the current added <script>

Does this solve a more generic issue than #2336 and you want to try this PR ?

Otherwise, I'll merge as is.

@gadenbuie

Copy link
Copy Markdown
Member

@cderv Thanks for the quick fix! This does indeed completely fix the issue for me, glad it was a simple one to fix. 😄

@cderv

cderv commented Mar 22, 2022

Copy link
Copy Markdown
Collaborator Author

Awesome! I'll merge then

[skip ci]
@cderv
cderv merged commit 75350ea into main Mar 22, 2022
@cderv
cderv deleted the fix/shinyrmd-eof branch March 22, 2022 17:55
j-magnolia pushed a commit to j-magnolia/rmarkdown that referenced this pull request May 5, 2022
* jg-devel:
  use tufte::tufte_handout in test, and remove tufte_handout in doc
  mark tufte_handout() as defunct
  CRAN release v2.14
  typo in NEWS
  Update arrow.theme regarding accessibility
  Adapt test snapshots to last pandoc devel 2.18+ (rstudio#2349)
  Revert "remove from NEWS as pandoc devel reverted the change"
  remove from NEWS as pandoc devel reverted the change
  Support for `fold-none` class in `html_document()` (rstudio#2348)
  Support new scheme for Pandoc nightly build
  Add lua-based codefolding feature and apply it to html_vignette (rstudio#2340)
  `site_generator()` stops search at RStudio project root (rstudio#2345)
  Update CONTRIBUTING.md
  Update tests following Pandoc change in 2.18 (rstudio#2334)
  dirname('.') returns '.', which will cause infinite recursion, so normalize the relative path to absolute before the next recursion (fix rstudio#2339)
  Fix parsing by pandoc of last paragraph in shinyrmd doc (rstudio#2337)
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

shinyrmd needs additional empty lines between content and knit meta

2 participants