Gitlab displays additional line breaks on files when viewing merge requests
Summary
Gitlab displays line breaks on files when viewing merge requests
Steps to reproduce
- Create a new branch
- Create a file and enter a very long line of text
- Push the branch
- Open a merge request
- Look at the new file under the "Changes" tab.
- The line wrapping can make it very difficult to read the changes
Example Project
An example of this line wrapping can be seen at https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10604/diffs#e66ff8739a6e038410997805f01cbc0d29f7bc59_90_90
What is the current bug behavior?
Gitlab displays line wrapping which causes the file to display different format/line breaks than it actually contains. This can make it hard to read and understand the changes when reviewing a merge request.
What is the expected correct behavior?
Gitlab should respect the format of the file and if necessary apply horizontal scroll bars in the "Changes" tab view. Alternatively, the changes view should expand horizontally to use the full available width when menu bars are minimized.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
Can not run commands, running on GitLab Cloud, Enterprise Edition 11.9.4-ee
Results of GitLab application Check
Expand for output related to the GitLab application check
Can not run commands, running on GitLab Cloud, Enterprise Edition 11.9.4-ee
Possible fixes
Unknown
