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:
parent
82f9f002bd
commit
5dfb8b1d80
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue