mirror of
https://github.com/plexusorg/toml4j.git
synced 2025-02-11 11:40:27 +00:00
Note writer options in the readme.
This commit is contained in:
parent
f3dca7d24f
commit
7ce548e616
1 changed files with 9 additions and 0 deletions
|
@ -252,6 +252,15 @@ anArray = [ 2, 3 ]
|
||||||
*/
|
*/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can exert some control over formatting. For example, you can change the default indentation, white space, and time zone:
|
||||||
|
|
||||||
|
```java
|
||||||
|
new TomlWriter().
|
||||||
|
wantTerseArrays(true).
|
||||||
|
setIndentationPolicy(new WriterIndentationPolicy().setTableIndent(2)).
|
||||||
|
setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||||
|
```
|
||||||
|
|
||||||
See the `TomlWriter` class for more details.
|
See the `TomlWriter` class for more details.
|
||||||
|
|
||||||
### Limitations
|
### Limitations
|
||||||
|
|
Loading…
Reference in a new issue