The width of a column: the widest row cell, but at least the header width.
(cell_lens: impl Iterator<Item = usize>, header: &str)
| 341 | |
| 342 | /// The width of a column: the widest row cell, but at least the header width. |
| 343 | fn col_width(cell_lens: impl Iterator<Item = usize>, header: &str) -> usize { |
| 344 | let header_w = header.chars().count(); |
| 345 | cell_lens |
| 346 | .chain(std::iter::once(header_w)) |
| 347 | .max() |
| 348 | .unwrap_or(header_w) |
| 349 | } |
| 350 | |
| 351 | /// Is this `memory/…` entry the vault's index scaffold rather than a real |
| 352 | /// canonical memory? The default `memory/MEMORY.md` installed by `init_vault` |