Configurate
Configurate copied to clipboard
Preserve multiline strings
Like in Python you can do:
node1="""Just a string "with" quotes!"""
as described here: https://github.com/lightbend/config/blob/master/HOCON.md#multi-line-strings
Configurate reads it correctly but always saves it back as followed:
node1="Just a string \"with\" quotes!"
I suggest there should be some type of option to enable triple quotes for strings that contain a least one " quote.
Any chance that Sponge forks the typesafe repo to fix things like that?
Any chance that Sponge forks the typesafe repo to fix things like that?
I would rather not as maintaining yet another library is something I'm not sure we have the man power to provide.
On top of which, Given the under-specification of Hocon, I'd be reluctant to fork the current reference implementation.
Configurate probably needs to change to adapt to the new API's provided since it was written, for modifying values in place, and controlling their formatting.
Duplicate of: https://github.com/lightbend/config/issues/409
Couldn't this be implemented with Mixins somewhere here: https://github.com/lightbend/config/blob/ea45ea3767a201933eeeb9c3f0f13eacc9b51f07/config/src/main/java/com/typesafe/config/impl/ConfigString.java#L82