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

Option to print variables one per line #259

Open
pmackay opened this issue Feb 6, 2020 · 2 comments
Open

Option to print variables one per line #259

pmackay opened this issue Feb 6, 2020 · 2 comments

Comments

@pmackay
Copy link

pmackay commented Feb 6, 2020

gon output currently has no newlines in it, which is compact but can be hard to read. For usability it would be helpful to have an option that would format the gon <script> content with each variable assignment on separate lines.

@gazay
Copy link
Owner

gazay commented Feb 7, 2020

Hey! Do you mean like pretty-print it in html? When I debug gon output I just use developer console because it provides you beautiful way to interact with json objects (you can just write window.gon and after that you can work with whole object using mouse).

@gazay gazay closed this as completed Feb 7, 2020
@gazay gazay reopened this Feb 7, 2020
@pmackay
Copy link
Author

pmackay commented Feb 9, 2020

Do you mean like pretty-print it in html?

Yes exactly, so the block of JS inside the <script> tag is readable with one variable per line.

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

2 participants