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
@ -121,7 +121,8 @@ def sanitize_sub(m):
|
|||||||
|
|
||||||
|
|
||||||
def sanitize(text):
|
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)
|
@lru_cache(maxsize=1024)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user