3 ms·
Cool project! I'm familiar with column, and this looks like a good replacement. Curious, how do you handle formatting on cells with long strings that need to o
by berlinquin 5y ago
Cool project! I'm familiar with column, and this looks like a good replacement.
Curious, how do you handle formatting on cells with long strings that need to overflow to multiple lines? As soon as you try to optimize the column widths for table length, you start hitting an NP-hard problem.
https://quintenkent.com/content/column-problem.html https://quintenkent.com/content/column-problem.html
- flusteredBias 5y agoI actually read that article when I started making the package. You can see some of the input data here https://github.com/alexhallam/tv/blob/main/data/a.csv https://github.com/alexhallam/tv/blob/main/data/a.csv. I let the user chose how long the max column width should me then append "...". The default value is 20 characters.