cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

[BUG] Q&A - editing code formatted text converts enters to html breaks

Johan_Hakkesteegt
Active Contributor
0 Likes
750

Hi,

When editing a comment (I have not tested it with an answer) that contains text formatted as code, that contains one or more enters, these enters are converted to HTML breaks <br>

I will test it out here
to see if it also applies
to questions
edit: and apparently it does not

Regards,

Johan

Accepted Solutions (0)

Answers (1)

Answers (1)

Johan_Hakkesteegt
Active Contributor
0 Likes

Let's see if we can reproduce it in an answer:

How
Now
Brown
Cow
edit: it does not appear to happen in answers
Johan_Hakkesteegt
Active Contributor
0 Likes
How
Now
Brown
Cow


becomes:


How<br>Now<br>Brown<br>Cow
former_member186338
Active Contributor
0 Likes

Just another test:

Test1
Test2
Test3<br>

only single "<br>" is added
Johan_Hakkesteegt
Active Contributor
0 Likes

And one more test:

How
Now
Brown
Cow

edit: can't reproduce it
Johan_Hakkesteegt
Active Contributor
0 Likes

Testing some more. This time normal text with manual line breaks, formatted as code afterwards:

Result after edit:

How<br>Now<br>Brown<br>Cow
Johan_Hakkesteegt
Active Contributor
0 Likes

Testing some more. This time code formatting turned on first, then entered text with manual line breaks:

Result after edit:

How
Now
Brown
Cow
Ask a Question
Top Q&A Solution Author