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

Truncate long lines in source snippets #228

Open
brendanzab opened this issue Apr 9, 2020 · 1 comment
Open

Truncate long lines in source snippets #228

brendanzab opened this issue Apr 9, 2020 · 1 comment

Comments

@brendanzab
Copy link
Owner

brendanzab commented Apr 9, 2020

In the json-benchmark there is a 2mb canada.json almost all of of the contents being on a single line.

It might be nice to also have a Config option here for truncating leading strings from long lines, producing something like

[19389 leading characters omitted] ...
"foo", "bar", "baz",, 
                    ^ Expected `"String"`, found ","

Originally posted by @ratmice in #119 (comment)

@brendanzab
Copy link
Owner Author

brendanzab commented Apr 9, 2020

This is similar to #125, but for the horizontal case. I think rustc does this currently - it might be useful to look at the test cases to see some examples.

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

1 participant