Skip to main content

normalize_summary

Function normalize_summary 

Source
pub fn normalize_summary(summary: &str) -> String
Expand description

Best-effort normalisation of a summary so it satisfies validate_summary.

Trims, collapses to the first line, strips trailing periods, and truncates to 72 characters at the last whole-word boundary.