From 7ce548e616f2b80a96226537cf573b4052e47d38 Mon Sep 17 00:00:00 2001 From: Jonathan Wood Date: Sun, 28 Jun 2015 14:15:38 -0700 Subject: [PATCH] Note writer options in the readme. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e2187f2..a6b8132 100644 --- a/README.md +++ b/README.md @@ -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. ### Limitations