Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve multiline strings #96

Open
randombyte-developer opened this issue Jun 13, 2018 · 4 comments
Open

Preserve multiline strings #96

randombyte-developer opened this issue Jun 13, 2018 · 4 comments
Milestone

Comments

@randombyte-developer
Copy link

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.

@randombyte-developer
Copy link
Author

Any chance that Sponge forks the typesafe repo to fix things like that?

@gabizou
Copy link
Member

gabizou commented Jun 19, 2018

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.

@ryantheleach
Copy link

ryantheleach commented Jun 20, 2018

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: lightbend/config#409

@randombyte-developer
Copy link
Author

@zml2008 zml2008 added this to the 4.0 milestone Apr 20, 2020
@zml2008 zml2008 modified the milestones: 4.0, 4.x Oct 2, 2020
@zml2008 zml2008 modified the milestones: 4.x, 4.1 Oct 26, 2020
@zml2008 zml2008 modified the milestones: 4.1, 4.2 May 3, 2021
@zml2008 zml2008 modified the milestones: 4.2.0, 4.3.0 Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants