I have some multiline strings with intended whitespace. For some of those, some whitespace is removed:
const WORKING: &str = "
┌─┬┐
│ ││
╞═╪╡
│ ││
├─┼┤
├─┼┤
│ ││
└─┴┘
";
const NON_WORKING: &str = "
?
│
?─┼?
│
?─┼?
?─┼?
│
?
";
pub fn main() {
println!("{}", WORKING);
println!("{}", NON_WORKING);
}
It removes some whitespace at the beginning of the line in the non-working one. Printing:
?
│
?─┼?
│
?─┼?
?─┼?
│
?
I think it has to deal with the use of but I don't know how to solve it without starting the line after the
"