Indentasy

Indent like a party

Rust implementation of https://cwestblog.com/2014/01/02/javascript-indenting-text/

Examples

```rust fn hellonewlineworld() { assert_eq!(" hello\n world", indentasy::indent("hello\nworld", 1, 4)); }

fn newlinehellonewlineworld() { asserteq!( "\n hello\n world", indentasy::indent("\nhello\nworld", 1, 4) ); }

fn hellonewlineworldindentwithtab() { asserteq!("\thello\n\tworld", indentasy::indent("hello\nworld", 1, 0)); }

fn hellonewlineworldwithString() { asserteq!( " hello\n world", indentasy::indent("hello\nworld".tostring(), 1, 4) ); } ```