Skip to main content

align_rows

Function align_rows 

Source
pub fn align_rows(rows: &[Vec<String>]) -> Vec<String>
Expand description

Pad each column in rows to the maximum width in that column and join cells with two spaces. Empty rows yields an empty Vec.

Width is measured in Unicode scalars (chars().count()); wide (CJK) or zero-width characters in account/commodity names can therefore misalign columns slightly. Acceptable for the Console scrollback — the dedicated data tabs render through ratatui’s own width-aware Table.