# Documentation [https://docs.rs/collapse](https://docs.rs/collapse) ## `fn collapse(s: &str) -> String;` ``` rust #[macro_use] use collapse::*; collapsed_eq!("two spaces", "two spaces"); collapsed_eq!("new\r\nlines", "new\nlines"); collapsed_eq!(" lead \t tail \r", "lead tail"); ```