insightsengineering / insightsengineering/crane
[Feature Request]: Helper for wrapping first column to reduce white space
- Dominant language
- R
- Stars
- 15
- Forks
- 7
- Avg merge
- 6d 9h
- Merged PRs (30d)
- 5
Description
### Feature description
First column of summaries tend to have lots of labels and levels. They might be of different length resulting in some places with lots of empty space at the level too:
Adding new lines fixes one but might not be enough as other levels might be longer than the new shorter lines:
I think the ideal solution would take the length of the labels, the length of the levels, where empty spaces can be replaced by new line, how this would affect the line length and the indentation of the levels.
A function could format the first column so that the new line is placed in all labels that need it to reduce the white space after the levels till the next column. But with long and complex names it might be hard to break them. Something like [`formatters::propose_column_width()`](https://cran.r-project.org/web/packages/formatters/refman/formatters.html#propose_column_widths) or one step further to actually modify the labels (`modify_characteristic()` ?)
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct.
### Contribution Guidelines
- [x] I agree to follow this project's Contribution Guidelines.
### Security Policy
- [x] I agree to follow this project's Security Policy.
Contributor guide
Assessment
This issue has not been assessed yet.