pop both pending redirections in format_bar_separator_op when max depth exceeded (#1903)

This commit is contained in:
Mark
2023-07-23 15:02:27 -06:00
parent e9ae80e250
commit 762e6d3ba4

View File

@@ -703,6 +703,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
fn format_bar_separator_op(&mut self, mut max_depth: usize, name: Atom, spec: OpDesc) {
if self.check_max_depth(&mut max_depth) {
self.iter.pop_stack();
self.iter.pop_stack();
let ellipsis_atom = atom!("...");