Skip to main content

visible_width

Function visible_width 

Source
pub fn visible_width(s: &str) -> usize
Expand description

Count the visible width of a Pango-marked string (its character count with all <span …>…</span> tags stripped). Used by the bordered-box renderer for padding alignment — claudebar implements this with sed 's/<[^>]*>//g'.