mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-15 04:14:15 +01:00
Display line-feed as instead of
This commit is contained in:
parent
8fa8f44706
commit
50dc4a79b0
@ -13,8 +13,8 @@ contexts:
|
||||
scope: constant.character.escape.show-nonprintable.tab
|
||||
- match: "↹"
|
||||
scope: constant.character.escape.show-nonprintable.tab
|
||||
- match: ""
|
||||
scope: keyword.operator.show-nonprintable.newline
|
||||
- match: "␊"
|
||||
scope: keyword.operator.show-nonprintable.line-feed
|
||||
- match: "␍"
|
||||
scope: string.show-nonprintable.carriage-return
|
||||
- match: "␀"
|
||||
|
@ -52,10 +52,10 @@ pub fn replace_nonprintable(input: &mut Vec<u8>, output: &mut Vec<u8>, tab_width
|
||||
output.extend_from_slice("┤".as_bytes());
|
||||
}
|
||||
}
|
||||
// new line
|
||||
b'\n' => output.extend_from_slice("".as_bytes()),
|
||||
// line feed
|
||||
0x0A => output.extend_from_slice("␊".as_bytes()),
|
||||
// carriage return
|
||||
b'\r' => output.extend_from_slice("␍".as_bytes()),
|
||||
0x0D => output.extend_from_slice("␍".as_bytes()),
|
||||
// null
|
||||
0x00 => output.extend_from_slice("␀".as_bytes()),
|
||||
// bell
|
||||
|
Loading…
Reference in New Issue
Block a user