Add space to special prompt chars (#2122)

So spaces don't have to be escaped with quotes in the config.toml
This commit is contained in:
Darren Schroeder 2020-07-06 10:30:47 -05:00 committed by GitHub
parent 34e1e6e426
commit 32f18536e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,7 @@ fn str_to_character(s: &str) -> Option<String> {
match s {
"newline" | "enter" | "nl" => Some("\n".into()),
"tab" => Some("\t".into()),
"sp" | "space" => Some(" ".into()),
// Unicode names came from https://www.compart.com/en/unicode
// Private Use Area (U+E000-U+F8FF)
"branch" => Some('\u{e0a0}'.to_string()), // 