New line characters are replaced in suggestions when there are multiple.
Summary
When making a suggestion to a merge request on a block of text that has multiple new line \n
characters, each new line after the first becomes %br
.
Text\non\nmultiple\nlines
becomes Text\non%brmultiple%brlines
Steps to reproduce
- Create merge request with a JSON file that has a string with multiple
\n
characters. - Make a comment on the line containing these characters.
- Insert suggestion from the comment UI.
- New lines after the first are now replaced with
%br
.
What is the current bug behavior?
Line breaks after the first are replaced with a different line break.
What is the expected correct behavior?
Line break characters should not be altered