Closed mustafa0x closed 1 year ago
To specify exactly stringify style, please read https://github.com/LongTengDao/j-toml/tree/master/docs/English#tomlsection-tomlinline-tomlmultiline-tomlmultilinearray-tomlmultilinebasic-tomlbasic-tomlliteral-tomlcommentfor-tomlcommentforthis-tomlissection-tomlisinline (obj.description = toml.multiline.basic('Multi\nLine\nTest\n1')
).
To preserve style from parse, please read https://github.com/LongTengDao/j-toml/blob/master/docs/English/xOptions.md#xoptionsliteral (read the notice before using xOptions).
It's hard to specify stringify style for most config file. All these features above in this library are mainly designed for "parse->modify->stringfy". If the parsed object also need to be used normally, copy it, or use it carefully.
Thank you!
Hi, thanks for the wonderful library.
Results in:
(description is no longer a multi-line string).
Similar applies to numbers (updating adds zeroes). Is there a way to maintain style even after editing? Even if it has to later be added in before converting back to toml.
Thanks!