diff --git a/ast/src/lib.rs b/ast/src/lib.rs index d4d0569e7..7e237a246 100644 --- a/ast/src/lib.rs +++ b/ast/src/lib.rs @@ -80,7 +80,10 @@ pub fn evaluate_unary_operation(op: UnaryOperator, v: T) -> T { fn indent(s: S, indentation: usize) -> String { s.to_string() .split('\n') - .map(|line| format!("{}{line}", "\t".repeat(indentation))) + .map(|line| match line { + "" => "".to_string(), + _ => format!("{}{line}", " ".repeat(indentation)), + }) .join("\n") }