Unquote the text.

This commit is contained in:
Tom Alexander
2023-04-22 18:18:13 -04:00
parent b3e182d7fe
commit 2ac0449630
2 changed files with 42 additions and 2 deletions

View File

@@ -889,11 +889,12 @@ fn compare_plain_text<'s>(
let mut this_status = DiffStatus::Good;
let mut message = None;
let text = emacs.as_text()?;
if text.text != rust.source {
let unquoted_text = text.unquote()?;
if unquoted_text != rust.source {
this_status = DiffStatus::Bad;
message = Some(format!(
"(emacs != rust) {:?} != {:?}",
text.text, rust.source
unquoted_text, rust.source
));
}