Skip to main content

preview

Function preview 

Source
pub fn preview<'a>(s: &'a str, g: &Glyphs) -> Cow<'a, str>
Expand description

One-line preview of s: a line break, a tab or another marked character becomes a mark from the glyph set, so line1\nline2 does not read as line1line2. A \r\n pair is one break.