Skip to main content

wrap_info_line

Function wrap_info_line 

Source
pub fn wrap_info_line(line: &str, max_width: usize) -> Vec<String>
Expand description

Wrap a formatted info line (key: value) at logical boundaries to fit within max_width.

Continuation lines are indented to align with the start of the value portion. Prefers splitting on logical delimiters (e.g. , , -) over arbitrary space boundaries, keeping atomic pairs (like RX: ... TX: ...) on the same line.