math-core-renderer-internal 0.6.3

Internal crate used by math-core
Documentation
1
2
3
4
5
6
7
8
9
10
const INDENT: &str = "    ";

pub fn new_line_and_indent(s: &mut String, indent_num: usize) {
    if indent_num > 0 {
        s.push('\n');
    }
    for _ in 0..indent_num {
        s.push_str(INDENT);
    }
}