Preserve the leading whitespace before an escape.

This commit is contained in:
Tom Alexander
2023-10-04 13:23:57 -04:00
parent 7ee48ff65c
commit 169bf69f5e
3 changed files with 35 additions and 28 deletions

View File

@@ -1549,12 +1549,11 @@ fn compare_example_block<'b, 's>(
// Compare value
let contents = get_property_quoted_string(emacs, ":value")?.unwrap_or(String::new());
let rust_contents = rust.get_contents();
if contents != rust_contents {
if contents != rust.contents {
this_status = DiffStatus::Bad;
message = Some(format!(
"Value mismatch (emacs != rust) {:?} != {:?}",
contents, rust_contents
contents, rust.contents
));
}