Please stop injecting linebreaks around code blocks between edits (or in any case)
Real pet peeve of mine as someone who uses the forum primarily for scripting. Every single time I post a code block and I need to edit this post in any way, the forum injects <br> tags above and beneath the code block. If my original response was something to the effect of:
<span>Some text with a tyop in it</span>
<br>
<code>var code = "goes here"</code>
<br>
<span>More text</span>
Upon editing the post, the result becomes:
<span>Some text with a typo in it</span>
<br>
<br>
<code>var code = "goes here"</code>
<br>
<br>
<span>More text</span>
Then upon editing it again, the result becomes:
<span>Some text with a typo in it</span>
<br>
<br>
<br>
<code>var code = "goes here"</code>
<br>
<br>
<br>
<span>More text because maybe I need to clarify or elaborate something, or correct a typo in my code</span>
This means that every time I edit a post, I have to wait for it to submit, then edit it again and delete all the linebreaks, then submit it a second time and accept default single linebreaks. I have to edit twice per one modification.
This is clearly some oversight in the forum software where any <pre> or <code> block automatically injects <br> tags, which:
- Is completely unnecessary. Adobe should not be injecting anything (especially as redundant as <br> tags) into my post.
- In the case it would seem necessary (like when spans and code blocks have no linebreak), should only be done if a linebreak does not exist. Right now, the forum doesn't check or care and that's pretty sloppy work from somewhere. It just haphazardly sandwiches all code blocks with additional slices of linebreak bread no matter how many you already have, every single time you edit or post.
