pub fn around(txt: &[&str], space: usize) -> Option<String>
Expand description

Adds space between the specified strings in the txt slice, and includes spaces on the outside

Great for setting up a columns with padding on each side

Will return None if there is not enough space to fit the text (length of txt > space)

Example:

use alinio::align;
let result = align::around(&["Title", "Artist", "Album"], 24); // Format 3 columns into a space of 24
println!("{}", result.unwrap()); // -> "  Title  Artist  Album  "