Skip to main content

flatten

Function flatten 

Source
pub fn flatten(text: &str) -> String
Expand description

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.