preserve multiline string trailing whitespace

This commit is contained in:
Aidan 2024-08-17 09:57:59 -04:00
parent 7be537dd55
commit 1551d8fb0d
No known key found for this signature in database
2 changed files with 9 additions and 2 deletions

View file

@ -6379,6 +6379,13 @@ mod test_fmt {
);
}
#[test]
fn preserve_multiline_string_trailing_whitespace() {
expr_formats_same(indoc!(
"x =\n \"\"\"\n foo\n bar \n baz\n \"\"\"\nx"
));
}
// this is a parse error atm
// #[test]
// fn multiline_apply() {