Skip to main content

lightweight_cleanup

Function lightweight_cleanup 

Source
pub fn lightweight_cleanup(content: &str) -> String
Expand description

Lightweight post-processing cleanup: collapses consecutive closing braces, removes whitespace-only lines, and limits consecutive blank lines to 1.