You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Code folding issues in RMD with nested code blocks in source editor #15191
RStudio Edition : Desktop or Server
RStudio Version : 2024.10.0+186
OS Version : any
R Version : any
Steps to reproduce the problem
Note: use a version of RStudio that already has the fix for #10079.
create a blank rmarkdown file, and in source (not visual) mode paste in:
---title: "Test"output: html_document---# A Header````{verbatim}We can output arbitrary content verbatim.```{r}1 + 1```The content can contain inline code like`r pi * 5^2`, too.````# Another header
Some content
Try using the code folding widgets in the gutter.
Describe the problem in detail
The outer chunk has beginning and ending fold widgets, as expected, but the inner chunk only has the ending widget.
Collapse the inner chunk and it shows no expand widget in the gutter (but you can expand via the inline indicator):
Expand the inner chunk again, then collapse the outer chunk using either the beginning or ending widget. In both cases the outer chunk only partially collapses, e.g. if you collapse the outer chunk using the starting widget:
Describe the behavior you expected
Consistent behavior. Note that the visual editor only provides option to collapse the outer chunk, nothing on the inner chunk.
Activity
gtritchie commentedon Sep 19, 2024
Verified using 2024.10.0-hourly+191 on macOS.
complete BRAT to Playwright migration (#17713)