Function whitespace_sifter::sift_preserve_newlines
source · pub fn sift_preserve_newlines(input: &str) -> String
Expand description
This remove duplicate whitespaces within the &str
while preserving deduplicated newlines.
This treats carriage-returns as just one char
in the &str
.