new_table

Function new_table 

Source
pub fn new_table() -> Table
Expand description

Build a borderless comfy-table with styling gated on stdout_color. When stdout is not a TTY (CI, piped-to-file), force_no_tty suppresses cell color escapes so a log or grep capture does not land raw \x1b[... sequences. The NOTHING preset skips box-drawing characters and keeps whitespace-padded columns, matching the previous hand-rolled format!("{:<30}…") look while auto-measuring each column from actual cell contents.

ContentArrangement::Disabled is the default arrangement: columns expand to whatever each cell needs, even when the result spills past the terminal edge. Callers that want terminal-width-aware cell wrapping use new_wrapped_table (ctprof compare/show reaches it via --wrap).