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

Pretty printing? #58

Open
bburdette opened this issue Jun 16, 2020 · 2 comments
Open

Pretty printing? #58

bburdette opened this issue Jun 16, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@bburdette
Copy link

I'd like to use s-expressions for a config file rather than json, but the single line output is pretty hard to read. I'm not seeing an obvious pretty-print flag in the serde_lexpr::print::Options. Is there a pretty print example someplace?

@rotty
Copy link
Owner

rotty commented Sep 19, 2020

Pretty printing is currently a missing feature. If I understand correctly, you want to use S-expressions for configuration, but the user does not write the config file by herself?

@rotty rotty added the enhancement New feature or request label Sep 19, 2020
@bburdette
Copy link
Author

Yes, for generating a default config file, or generating a file from rust according to user inputs. Thanks for clarifying, from just browsing the code it seemed like there might be some infrastructure there for pretty printing already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants