Skip to main content

math_core_renderer_internal/
fmt.rs

1const INDENT: &str = "    ";
2
3pub fn new_line_and_indent(s: &mut String, indent_num: usize) {
4    if indent_num > 0 {
5        s.push('\n');
6    }
7    for _ in 0..indent_num {
8        s.push_str(INDENT);
9    }
10}