pub fn truncate_line(line: &str, max_chars: usize) -> (&str, bool)
Truncates a single line to a maximum character count.