-
Bug
-
Resolution: Fixed
-
Low
-
None
-
10
-
The diff view lets git itself decide on the correct line endings to use, but the lines can themselves contain line endings of a different format leading to multi-line lines which the UI displays badly.
We should either escape the other line endings or let the UI handle multi-line lines.
An example
Line 1: some text <mac line ending> some more text <mac line ending><linux line ending> Line 2: some text <mac line ending> some more text <mac line ending><linux line ending>
The above would currently be displayed with "some more text" from line 1 on top of "some text" from line 2
This could be displayed as:
Line 1: some text ^M some more text ^M Line 2: some text ^M some more text ^M
or
Line 1: some text Line 1: some more text Line 2: some text Line 2: some more text
- is duplicated by
-
BSERV-7286 Source view does not properly display files with mixed line endings
- Closed
- is superseded by
-
BSERV-8428 Harden diff parsing for files with CR (^M) line endings that "git diff" does not support
- Closed
- relates to
-
BSERV-3982 Diff of files is impossible to read when Ctrl+M is used as line separator
- Closed