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

jsonnetfmt: convert strings with \n to use ||| multiline #501

Open
ghostsquad opened this issue Jan 15, 2021 · 1 comment
Open

jsonnetfmt: convert strings with \n to use ||| multiline #501

ghostsquad opened this issue Jan 15, 2021 · 1 comment

Comments

@ghostsquad
Copy link
Contributor

This is a feature request (or at least an idea) to be able to detect & convert strings with \n in them to use the ||| multiline format.

@alexhulbert
Copy link

Hacky regex I wrote to do this. Probably has some edge cases I didn't think of but its better than editing them by hand:

https://gist.github.com/alexhulbert/738d830399bc05242a3a71569313c844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants