1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 04:27:45 +00:00

string_interp: remove surrounding whitespace for wide layout

This commit is contained in:
Tom Bereknyei 2022-02-01 14:58:16 -05:00
parent 2b04b9b117
commit 3daca47b2c
2 changed files with 4 additions and 8 deletions

View file

@ -140,8 +140,8 @@ Let's get Alejandra on our systems:
$ nix-env -qaP --json --drv-path > after
```
As of 2022-01-28,
there are 94 differences in a set of 34079 derivations
As of 2022-02-01,
there are 89 differences in a set of 34079 derivations
because of things like this:
```

View file

@ -21,9 +21,7 @@ pub fn rule(
steps.push_back(crate::builder::Step::NewLine);
steps.push_back(crate::builder::Step::Pad);
}
crate::config::Layout::Wide => {
steps.push_back(crate::builder::Step::Whitespace);
}
crate::config::Layout::Wide => {}
}
// /**/
@ -59,9 +57,7 @@ pub fn rule(
steps.push_back(crate::builder::Step::NewLine);
steps.push_back(crate::builder::Step::Pad);
}
crate::config::Layout::Wide => {
steps.push_back(crate::builder::Step::Whitespace);
}
crate::config::Layout::Wide => {}
}
steps.push_back(crate::builder::Step::Format(child.element));