mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 06:54:58 +02:00
diff kitten: Display CRLF line endings using the unicode return symbol instead of <d> as it is less intrusive.
Fixes #638
This commit is contained in:
@@ -121,7 +121,8 @@ def sanitize_sub(m):
|
||||
|
||||
|
||||
def sanitize(text):
|
||||
return sanitize_pat.sub(sanitize_sub, text)
|
||||
ntext = text.replace('\r\n', '⏎\n')
|
||||
return sanitize_pat.sub(sanitize_sub, ntext)
|
||||
|
||||
|
||||
@lru_cache(maxsize=1024)
|
||||
|
||||
Reference in New Issue
Block a user