Skip to main content

wrap_paragraphs

Function wrap_paragraphs 

Source
pub fn wrap_paragraphs(text: &str, width: usize) -> String
Expand description

Greedy word-wrap each paragraph at width columns. Preserves blank lines (paragraph separators), leaves fenced code blocks (triple-backtick) and indented lines untouched.