Skip to main content

render_table

Function render_table 

Source
pub fn render_table(
    title: &str,
    headers: &[&str],
    rows: Vec<Vec<String>>,
    active_idx: Option<usize>,
    spaced: bool,
)
Expand description

spaced puts a blank line between rows. Right for a flat list, wrong for a nested one: in a tree the vertical gap competes with the indentation for the reader’s sense of structure.