Preserve commit message whitespace/indentation on MR Pages
What does this MR do and why?
Switches the MR display of commits to use whitespace: pre-wrap
instead of whitespace: pre-line
.
Using pre-wrap
allows lines to preserve their leading (and trailing! and intermediary!) whitespace while still supporting line-wrapping.
For #402697 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After | |
---|---|---|
Create | ![]() |
![]() |
Commits Tab | ![]() |
![]() |
How to set up and validate locally
- Create a commit with indented text in its body. You could copy the text from this commit
- Create an MR with the commit in it.
- Note the commit body text while on the MR creation form
- Navigate to the Commits tab of your new MR
- Note the commit body text on the Changes tab
Edited by Thomas Randolph