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
* The formatting options that were passed as a parameter to `toml.encode`, `toml.encodeToFile`, `toml.toJSON`, and `toml.toYAML` previously had no effect when overriding values.
* Resolved CMake `FetchContent_Populate` warning.
* Updated to magic_enum v0.9.7.
* Added encoding options tests.
* Update to luarocks 3.11 in CI
* Switch to LuaJIT rolling tarball
- The formatting options that were passed as a parameter to `toml.encode`, `toml.encodeToFile`, `toml.toJSON`, and `toml.toYAML` previously had no effect when overriding values.
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -481,7 +481,7 @@ int3 = 0x169F
481
481
482
482
#### Formatting TOML, JSON, or YAML
483
483
484
-
`toml.encode`, `toml.encodeToFile`, `toml.toJSON`, and `toml.toYAML` all take an optional second parameter: a table containing keys that disable or enable different formatting options.
484
+
`toml.encode`, `toml.encodeToFile`, `toml.toJSON`, and `toml.toYAML` all take an optional second (third in the case of `toml.encodeToFile`) parameter: a table containing keys that disable or enable different formatting options.
485
485
Passing an empty table removes all options, while not providing a table will use the default options.
486
486
487
487
```lua
@@ -514,10 +514,10 @@ Passing an empty table removes all options, while not providing a table will use
514
514
allowHexadecimalIntegers=true,
515
515
516
516
--- Apply indentation to tables nested within other tables/arrays.
517
-
indentSubTables=true,
517
+
indentSubTables=false,
518
518
519
519
--- Apply indentation to array elements when the array is forced to wrap over multiple lines.
520
-
indentArrayElements=true,
520
+
indentArrayElements=false,
521
521
522
522
--- Combination of `indentSubTables` and `indentArrayElements`.
0 commit comments