2 releases
| 0.1.1 | Jan 17, 2021 |
|---|---|
| 0.1.0 | Jan 16, 2021 |
#4 in #heredoc
10,752 downloads per month
Used in 2 crates
5KB
stripmargin
A little Rust library that enables you to write multiline strings à la Scala.
Usage
use stripmargin::StripMargin;
// Use '|' to set left margin,
// and then `.strip_margin()` :)
```rust
assert_eq!(
r#"Hello,
| world!
|"#
.strip_margin(),
"Hello,\n world!\n",
);