Skip to main content

clean_text

Function clean_text 

Source
fn clean_text(s: &str) -> String
Expand description

Clean section text: trim leading/trailing blank lines, normalize internal paragraph breaks (double newlines) while preserving single newlines for line structure.