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
Reindent & Reformat Lines stopped working in Quarto Callout Blocks #14640
I experienced the same problem in source mode on macOS. In my case, it didn't work inside and outside Quarto blocks.
RStudio Edition : Desktop
RStudio Version : 2024.04.0+735
OS Version : MacOS Sonoma 14.4.1
R Version : 4.4.0 (2024-04-24) -- "Puppy Cup"
Quarto Version: 1.4.554
Indentation works with the previous RStudio Version 2023.12.1+402, but only with 2 spaces. The older version didn't respect changes (even after restarting RStudio) in the global and project configuration. (I didn't notice this before).
In visual mode, everything works in the older and the latest RStudio version.
changed the title [-]Reindent Lines stopped working in Quarto Callout Blocks[/-][+]Reindent & Reformat Lines stopped working in Quarto Callout Blocks[/+]on May 8, 2024
Activity
ronblum commentedon May 2, 2024
@cy-james-lee Thank you for raising the issue! I can reproduce this in RStudio Desktop 2024.04.1+735 on Windows 11.
Note: This is source mode only--it works in visual mode. Also, this works correctly in version 2023.12.1+402.
petzi53 commentedon May 3, 2024
I experienced the same problem in source mode on macOS. In my case, it didn't work inside and outside Quarto blocks.
RStudio Edition : Desktop
RStudio Version : 2024.04.0+735
OS Version : MacOS Sonoma 14.4.1
R Version : 4.4.0 (2024-04-24) -- "Puppy Cup"
Quarto Version: 1.4.554
Indentation works with the previous RStudio Version 2023.12.1+402, but only with 2 spaces. The older version didn't respect changes (even after restarting RStudio) in the global and project configuration. (I didn't notice this before).
In visual mode, everything works in the older and the latest RStudio version.
cy-james-lee commentedon May 3, 2024
I also noticed that collapsing code section doesn't work inside of callout blocks.
I always add session info at the end of Quarto inside of a collapsed callout like so:
I don't have the collapse button next to ## Session Info:

If I comment out the callout block enclosure, I get the collapse button back.

ronblum commentedon May 3, 2024
@petzi53 Can you provide a brief example of code in which you're seeing the issue?
@cy-james-lee I believe that what you're seeing is discussed in issue #14642.
[-]Reindent Lines stopped working in Quarto Callout Blocks[/-][+]Reindent & Reformat Lines stopped working in Quarto Callout Blocks[/+]ronblum commentedon May 8, 2024
Also @d-morrison found that this happens with reformatting (cmd-shift-A or Menu Bar > Code > Reformat Code).
gtritchie commentedon May 9, 2024
Regression caused by #14558.
LeenSonneveld commentedon May 10, 2024
This seems to occcur (in source editor) not only after callout block, but any ::: (eg. ::: column, ::: panel-tabset
ronblum commentedon May 29, 2024
Initial example verified fixed in RStudio Desktop 2024.07.0-daily+174, but need to test a little further.
ronblum commentedon May 30, 2024
Verified in RStudio Desktop 2024.04.2+762.pro1:
ronblum commentedon May 30, 2024
Verified in 2024.07.0-daily+178.pro1 on Windows 11, as well.
trying out 2 way mods for 23v24 pup mass per 250220 joel mtg; autoind…