pure_lines
A tool that beautify multiple lines.
- Trim first line if empty
- Trim min indent
Problem
What you need str:
hello
world
You had to do:
let s = "hello
world";
println!;
Now you can:
let s = "
hello
world";
println!;
Example
Basic Example
use pure_lines;
Example with prefix
use pure_lines;
Advance
If you want your code more faster, using the quick feature.
quick feature trim indent based on the first line which is not empty.
⚠Note: make sure the after lines indent must bigger than the first,or you will lose some string.
your Cargo.toml could look like this:
[]
= { = "0.2.0", = ["quick"] }