Skip to main content

remove_trailing_standalone_dash

Function remove_trailing_standalone_dash 

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

Remove a trailing standalone - line (pattern /(\n\n?)-[ \t]*$/): returns content with that dash line removed, newlines preserved.