Skip to main content

last_paragraph_range

Function last_paragraph_range 

Source
pub fn last_paragraph_range(
    content: &str,
    skip_trailing_empty: bool,
) -> (usize, usize)
Expand description

Last paragraph = content after the last blank line. Returns (start_line_index, byte_offset_of_start).