Forum Discussion
Extra line feeds added around code blocks if a post is edited
Hello edhans,
Could you provide some more details? Does this happen with typed out text or copied and pasted text? What browser are you using? Detailed steps for when exactly this happens would also be great.
Thanks in advance.
- edhans6 years ago
Community Champion
Hi JCM_iTalent ,
The normal text is typed. 99% of the time any text in the code box is pasted into the code box, using the </> icon on the toolbar.
I am using Chromium Edge, currently build 84.0.522.59, but this has been happening at least a month or so.It never happens when I create the first message. Everthing looks good.
But I can submit it, then
- Press Edit Post
- add 1 word to the end of the post. Never touching anything else.
- press submit.
It automatically adds the line feeds around the code boxes. It will continue to do this until there are 2-3 extra lines, then it seems to stop. I can edit it 5 or 6 times, but it won't go beyond the 2-3 extra line feeds it inserts.
I can delete the line feeds when I edit, but they will come back if I edit again.
I always see this around code boxes. I sometimes see it around images, but not as often. Rarely even.
- edhans6 years ago
Community Champion
I'm going to create a GIF showing this.
This is some awesome code!forgot something!
ok JCM_iTalent - here is a GIF showing how this happens (for some reason it might not show up in your browser. Click onthe broken image icon if that happens. It will open in a window and show it. Might be because it is 3MB)- meanwhile all of these edits have added a ton of new line feeds.
- JCM_iTalent6 years ago
Microsoft Employee
Thanks for the detailed steps, edhans. The GIF was extremely useful and helped me reproduce the issue.
I have passed your report on for investigation. We will let you know if we have any updates.