whitespace-sifter
Sift duplicate whitespaces away in just one function call.
This crate helps you remove duplicate whitespaces within the &str
.
Other than that, it naturally removes the whitespaces at the start and end of the &str
.
Examples
use *;
// This prints `1.. 2.. 3.. 4.. 5..`.
println!;
// This prints `A..\r\nB..\r\nC..\r\nD..\r\nE..`.
println!;
// This prints `1..\n2..\n3..\n4..\n5..`.
println!;
// This prints `A..\r\nB..\r\nC..\r\nD..\r\nE..`.
println!;