@@ -52,10 +52,10 @@ pub fn replace_nonprintable(input: &mut Vec<u8>, output: &mut Vec<u8>, tab_width
5252 output.extend_from_slice("┤".as_bytes());
5353 }
5454 }
55− // new line
56− b'\n' => output.extend_from_slice("".as_bytes()),
55+ // line feed
56+ 0x0A => output.extend_from_slice("␊".as_bytes()),
5757 // carriage return
58− b'\r' => output.extend_from_slice("␍".as_bytes()),
58+ 0x0D => output.extend_from_slice("␍".as_bytes()),
5959 // null
6060 0x00 => output.extend_from_slice("␀".as_bytes()),
6161 // bell