revert printing of characters

This commit is contained in:
Mark Thom
2020-05-19 17:34:55 -06:00
parent 3245261162
commit a0544cc345
2 changed files with 50 additions and 1 deletions

View File

@@ -160,7 +160,7 @@ fn char_to_string(is_quoted: bool, c: char) -> String {
'\u{d8}' ..= '\u{f6}' => c.to_string(),
'\u{f8}' ..= '\u{74f}' => c.to_string(),
'\x20' ..= '\x7e' => c.to_string(),
_ => format!("\\{:x}\\", c as u32),
_ => format!("\\x{:x}\\", c as u32),
}
}