mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 04:57:44 +00:00
Merge pull request #24 from tomberek/remove_string_interp_whitespace
string_interp: remove surrounding whitespace for wide layout
This commit is contained in:
commit
06cf375430
2 changed files with 4 additions and 8 deletions
|
@ -140,8 +140,8 @@ Let's get Alejandra on our systems:
|
||||||
$ nix-env -qaP --json --drv-path > after
|
$ nix-env -qaP --json --drv-path > after
|
||||||
```
|
```
|
||||||
|
|
||||||
As of 2022-01-28,
|
As of 2022-02-01,
|
||||||
there are 94 differences in a set of 34079 derivations
|
there are 89 differences in a set of 34079 derivations
|
||||||
because of things like this:
|
because of things like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -21,9 +21,7 @@ pub fn rule(
|
||||||
steps.push_back(crate::builder::Step::NewLine);
|
steps.push_back(crate::builder::Step::NewLine);
|
||||||
steps.push_back(crate::builder::Step::Pad);
|
steps.push_back(crate::builder::Step::Pad);
|
||||||
}
|
}
|
||||||
crate::config::Layout::Wide => {
|
crate::config::Layout::Wide => {}
|
||||||
steps.push_back(crate::builder::Step::Whitespace);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**/
|
// /**/
|
||||||
|
@ -59,9 +57,7 @@ pub fn rule(
|
||||||
steps.push_back(crate::builder::Step::NewLine);
|
steps.push_back(crate::builder::Step::NewLine);
|
||||||
steps.push_back(crate::builder::Step::Pad);
|
steps.push_back(crate::builder::Step::Pad);
|
||||||
}
|
}
|
||||||
crate::config::Layout::Wide => {
|
crate::config::Layout::Wide => {}
|
||||||
steps.push_back(crate::builder::Step::Whitespace);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
steps.push_back(crate::builder::Step::Format(child.element));
|
steps.push_back(crate::builder::Step::Format(child.element));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue