-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix vec_nlines and complete support newline character #167
Conversation
Code Coverage Summary
Diff against main
Results for commit: 00bde3c Minimum allowed coverage is ♻️ This comment has been updated with latest results |
hi @Melkiades , thanks for the change, blocking the PR before preparing for the new release |
mtchs <- gregexpr("\n", strvec, fixed = TRUE) # this was and is never seeing a \n | ||
line_extension_count + vapply(mtchs, function(vi) sum(vi > 0), 1L) | ||
# in formatters for characters | ||
unlist(lapply(format_colvector(colvec = vec), nlines, max_width = max_width)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shajoezhu I think this fix is important to have
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm! Thanks Davide - this is a nice change :)
Fixes insightsengineering/tlg-catalog#48