How Stop RStudio Server from Reformatting HTML Code

When editing an R Markdown document in RStudio Server I write this HTML:

<ul>
<li>Hello there</li>
<li>I am a bunch of</li>
<li>Bullet points</li>
</ul>

If I then click on Visual in the top left and then back to Source, I see:

<ul>

<li>

Hello there

</li>

<li>

I am a bunch of

</li>

<li>

Bullet points

</li>

</ul>

Is there a way to stop RStudio from reformatting this?

I'm using:

RStudio 2022.02.2+485 "Prairie Trillium" Release (8acbd38b0d4ca3c86c570cf4112a8180c48cc6fb, 2022-04-19) for Ubuntu Bionic Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.