Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify that array_auto_expand is conditional #526

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/taplo/src/formatter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ create_options!(
/// arrays.
pub array_trailing_comma: bool,

/// Automatically expand arrays to multiple lines
/// if they're too long.
/// Automatically expand arrays to multiple lines once they
/// exceed the configured `column_width`.
pub array_auto_expand: bool,

/// Expand values (e.g.) inside inline tables
Expand Down
2 changes: 1 addition & 1 deletion site/site/configuration/formatter-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In some environments (e.g., Visual Studio Code), one needs to reload the extensi
| align_entries | Align entries vertically. Entries that have table headers, comments, or blank lines between them are not aligned. | false |
| align_comments | Align consecutive comments after entries and items vertically. This applies to comments that are after entries or array items. | true |
| array_trailing_comma | Put trailing commas for multiline arrays. | true |
| array_auto_expand | Automatically expand arrays to multiple lines | true |
| array_auto_expand | Automatically expand arrays to multiple lines when they exceed `column_width` characters. | true |
| array_auto_collapse | Automatically collapse arrays if they fit in one line. | true |
| compact_arrays | Omit whitespace padding inside single-line arrays. | true |
| compact_inline_tables | Omit whitespace padding inside inline tables. | false |
Expand Down
Loading