Skip to main content

trim_trailing_blank_lines

Function trim_trailing_blank_lines 

Source
fn trim_trailing_blank_lines(output: &mut String)
Expand description

Keep generated snapshots compatible with git diff --check by avoiding a trailing blank line at EOF while preserving the final newline.