Skip to main content

render_table

Function render_table 

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

Render rows as a borderless table: one space of padding each side of every cell, every cell padded to its column’s width in terminal columns, a multi-line cell continued on the following lines, and each cell’s style wrapping content and padding together. Colors are emitted unconditionally; the caller prints through anstream, which strips them when stdout is not a terminal.