You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* formatters/basic: add force_array_style
This PR adds the `force_array_style` feature to the basic formatter,
which allows the user to force either `block` or `flow` sequence style
in the formatted document.
* add the license I forgot
* remove TODO comment I left in
* oops overwrote the test expectation
* readded removed newline
Copy file name to clipboardExpand all lines: docs/config-file.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,7 @@ The basic formatter is a barebones formatter that simply takes the data provided
89
89
| `array_indent` | int | = indent | Set a different indentation level for block sequences specifically. |
90
90
| `indent_root_array` | int | false | Tells the formatter to indent an array that is at the lowest indentation level of the document. |
91
91
| `disable_alias_key_correction` | bool | false | Disables functionality to fix alias nodes being used as keys. See #247 for details. |
92
+
| `force_array_style` | `flow`, `block`, or empty | empty | If set, forces arrays to be output in a particular style, either `flow` (`[]`) or `block` (`- x`). If unset, the style from the original document is used. |
0 commit comments