correct max_depth option (#1876)

This commit is contained in:
Mark
2023-07-21 15:05:27 -06:00
parent 92c77cdff5
commit 9a7862c322
4 changed files with 25 additions and 39 deletions

View File

@@ -1465,9 +1465,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
let print_struct = |printer: &mut Self, name: Atom, arity: usize| {
if name == atom!("[]") && arity == 0 {
if !printer.at_cdr("") {
append_str!(printer, "[]");
}
append_str!(printer, "[]");
} else if arity > 0 {
if let Some(spec) = fetch_op_spec(name, arity, printer.op_dir) {
printer.handle_op_as_struct(