-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
138 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# `alignComments` | ||
|
||
Control whether to tweak multi-line comments indentation. | ||
|
||
Default option value is `true`. | ||
|
||
## Example for `false` | ||
|
||
[Playground](https://malva-play.vercel.app/?code=H4sIAAAAAAAAA0tUqOZSAAJ9LYXk%2FNzc1LwShZzMvFQFQ7AoEKCIGmEVNQaLaumDqZLUihLdlNTk%2FKLEksz8PCuFvPy8VGuuWgAzUTX%2BaQAAAA%3D%3D&config=H4sIAAAAAAAAA6vmUlBQSszJTM9zzs%2FNTc0rKVayUkhLzClO5aoFAIntfVEcAAAA&syntax=css) | ||
|
||
When formatting the 4-space indented CSS into 2-space indented CSS: | ||
|
||
```css | ||
a { | ||
/* comment line 1 | ||
comment line 2 | ||
comment line 3 | ||
*/ | ||
text-decoration: none; | ||
} | ||
``` | ||
|
||
will be formatted as: | ||
|
||
```css | ||
a { | ||
/* comment line 1 | ||
comment line 2 | ||
comment line 3 | ||
*/ | ||
text-decoration: none; | ||
} | ||
``` | ||
|
||
## Example for `true` | ||
|
||
[Playground](https://malva-play.vercel.app/?code=H4sIAAAAAAAAA0tUqOZSAAJ9LYXk%2FNzc1LwShZzMvFQFQ7AoEKCIGmEVNQaLaumDqZLUihLdlNTk%2FKLEksz8PCuFvPy8VGuuWgAzUTX%2BaQAAAA%3D%3D&config=H4sIAAAAAAAAA6vmUlBQSszJTM9zzs%2FNTc0rKVayUigpKk3lqgUAiNln3BsAAAA%3D&syntax=css) | ||
|
||
When formatting the 4-space indented CSS into 2-space indented CSS: | ||
|
||
```css | ||
a { | ||
/* comment line 1 | ||
comment line 2 | ||
comment line 3 | ||
*/ | ||
text-decoration: none; | ||
} | ||
``` | ||
|
||
will be formatted as: | ||
|
||
```css | ||
a { | ||
/* comment line 1 | ||
comment line 2 | ||
comment line 3 | ||
*/ | ||
text-decoration: none; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/*cfg alignComments = false */ | ||
a { | ||
/* comment line 1 | ||
comment line 2 | ||
comment line 3 | ||
*/ | ||
text-decoration: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
source: malva/tests/fmt.rs | ||
--- | ||
/*cfg alignComments = false */ | ||
a { | ||
/* comment line 1 | ||
comment line 2 | ||
comment line 3 | ||
*/ | ||
text-decoration: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
a { | ||
/* comment line 1 | ||
comment line 2 | ||
comment line 3 | ||
*/ | ||
text-decoration: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: malva/tests/fmt.rs | ||
--- | ||
a { | ||
/* comment line 1 | ||
comment line 2 | ||
comment line 3 | ||
*/ | ||
text-decoration: none; | ||
} |