pub fn flatten(text: &str) -> String
A single-line editor’s text: every line break a space, byte for byte, so the offsets of an edit computed against the raw text still hold.