indent

This crate provides 4 functions useful for inserting a multiline string into an already indented context in another string:

Examples

```rust use indent::indent;

fn main() { let string = "line one

line two "; assert_eq!("line one\n\n line two\n", indent(2, string); } ```

License

Mozilla Public License 2.0

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed under the Mozilla Public License 2.0, without any additional terms or conditions.