Endline characters are getting ignored.
Summary
End-line characters are getting ignored when copy text from editor for both repository as well as snippet.
Steps to reproduce
- Open any project or snippet
- Copy some text from a file or click on copy source on clipboard (a copy sign present at uppermost right hand side of the text editor).
- Paste it in any text editor.
Example Project
Source file: https://gitlab.com/snippets/1855557
Pasted data in editor section: https://gitlab.com/snippets/1855559
Similarly, we can reproduce it for repositories.
What is the current bug behavior?
All end-line characters are getting ignored.
What is the expected correct behavior?
Pasted text should be as it's of copied data (no end-line characters should be ignored).
Output of checks
This bug happens on https://gitlab.com as well as on many other Gitlab instances.