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

code_highlight() trims long strings #726

Open
moodymudskipper opened this issue Sep 30, 2024 · 1 comment · May be fixed by #727
Open

code_highlight() trims long strings #726

moodymudskipper opened this issue Sep 30, 2024 · 1 comment · May be fixed by #727

Comments

@moodymudskipper
Copy link

moodymudskipper commented Sep 30, 2024

This is the cli counterpart of prettycode's r-lib/prettycode#20

x <- paste0('"', strrep("-", 1000), '"')
cli::code_highlight(x)
#> [1] "[1000 chars quoted with '\"']"

Created on 2024-09-30 with reprex v2.1.0

Would you like a PR?

@moodymudskipper
Copy link
Author

I went ahead and submitted a PR, happy to revise!

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

Successfully merging a pull request may close this issue.

1 participant