-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Limit line-width when pretty-printing edn #151
Comments
I'm playing around with this option, but I'm not sure if it would fit your needs this way. E.g., I'm using fipp (an EDN pretty printer):
as you can see it still is more than 20 characters wide but the output does change when I set it to 200 |
Bummer ... seems to work pretty well with But I guess there's performance reasons that you're not using it? FWIW, I can always pipe through the snippet below, when I need to.
|
You can also do that with babashka for faster startup |
I'm not exactly sure why I used fipp instead of pprint, I think it was because pprint didn't work properly with graalvm a long time ago. |
It would be great to be able to limit the width of lines when pretty-printing edn, so that eg
became
depending on the max-width specified.
Discussion: https://clojurians.slack.com/archives/CM5HRADAA/p1710930246744919
The text was updated successfully, but these errors were encountered: