limit_sections

Function limit_sections 

Source
pub fn limit_sections(output: &str, limit: usize) -> String
Expand description

Truncate each ## <heading> section to at most limit lines. Sections are delimited by lines starting with ## . Content before the first section header passes through untruncated (typically the file-path header row).