mirror of https://github.com/zkat/miette.git
Don't escape single-quotes, that's not valid json
This commit is contained in:
parent
714334098a
commit
97be935ff4
|
|
@ -30,7 +30,6 @@ impl fmt::Display for Escape<'_> {
|
||||||
let escape = match c {
|
let escape = match c {
|
||||||
'\\' => Some(r"\\"),
|
'\\' => Some(r"\\"),
|
||||||
'"' => Some(r#"\""#),
|
'"' => Some(r#"\""#),
|
||||||
'\'' => Some(r"\'"),
|
|
||||||
'\r' => Some(r"\r"),
|
'\r' => Some(r"\r"),
|
||||||
'\n' => Some(r"\n"),
|
'\n' => Some(r"\n"),
|
||||||
'\t' => Some(r"\t"),
|
'\t' => Some(r"\t"),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue