From 2f0718e88545a5d0497ce62d1f84e540479af50d Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Sat, 5 Feb 2022 20:40:28 -0700 Subject: [PATCH] fix write_canonical on strings (#1233) --- src/heap_print.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/heap_print.rs b/src/heap_print.rs index 8852c3c8..0a664c6a 100644 --- a/src/heap_print.rs +++ b/src/heap_print.rs @@ -1148,10 +1148,6 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> { if end_cell == empty_list_as_cell!() { append_str!(self, "[]"); } else { - if self.outputter.ends_with(",") { - self.outputter.truncate(self.outputter.len() - ','.len_utf8()); - } - self.state_stack.push(TokenOrRedirect::FunctorRedirect(max_depth)); self.iter.push_stack(end_h); } -- 2.54.0