pub fn inline_edit_clean(text: &str, multiline: bool) -> String
Cleans whitespace the way upstream does: single-line collapses runs to one space.