getColumnMaxWidth determines the maximum width for a column
(colIndex int)
| 227 | |
| 228 | // getColumnMaxWidth determines the maximum width for a column |
| 229 | func getColumnMaxWidth(colIndex int) int { |
| 230 | // Default wrap width (50 characters for long columns) |
| 231 | defaultWidth := 50 |
| 232 | |
| 233 | // Check if custom width is set |
| 234 | if width, exists := wrappedColumns[colIndex]; exists { |
| 235 | return width |
| 236 | } |
| 237 | |
| 238 | return defaultWidth |
| 239 | } |
| 240 | |
| 241 | // detectAndWrapLongColumns automatically enables wrapping for columns with long content |
| 242 | // Analyzes first N rows to detect if columns have text longer than threshold |
no outgoing calls