Use spaces for indentation.

This commit is contained in:
chriseth
2023-12-18 20:32:24 +01:00
parent 4fb7ff5c29
commit 62ad12650f

View File

@@ -80,7 +80,10 @@ pub fn evaluate_unary_operation<T: FieldElement>(op: UnaryOperator, v: T) -> T {
fn indent<S: ToString>(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")
}