mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 21:17:45 +00:00
parent
e33ab6fc18
commit
a5cc33c6d8
18 changed files with 1128 additions and 1128 deletions
|
@ -55,11 +55,11 @@ fn build_step(
|
||||||
.iter()
|
.iter()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.map(|(index, line)| {
|
.map(|(index, line)| {
|
||||||
if index == 0 {
|
if index == 0 || line.is_empty() {
|
||||||
line.to_string()
|
line.to_string()
|
||||||
} else {
|
} else {
|
||||||
format!(
|
format!(
|
||||||
"{0:<1$} {2}",
|
"{0:<1$}{2}",
|
||||||
"",
|
"",
|
||||||
2 * build_ctx.indentation,
|
2 * build_ctx.indentation,
|
||||||
line,
|
line,
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
/*
|
/*
|
||||||
Some functions f
|
Some functions f
|
||||||
name attribute.
|
name attribute.
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
Add to or over
|
Add to or over
|
||||||
derivation.
|
derivation.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
addMetaAttrs {des
|
addMetaAttrs {des
|
||||||
*/
|
*/
|
||||||
1
|
1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue