From b2fed730117602fcee09432dae16cfaf8d28618a Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Sun, 16 Jun 2019 01:25:42 -0400 Subject: [PATCH] re: issue #144 --- src/prolog/heap_print.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/prolog/heap_print.rs b/src/prolog/heap_print.rs index 8136c75f..896ee7c7 100644 --- a/src/prolog/heap_print.rs +++ b/src/prolog/heap_print.rs @@ -819,9 +819,14 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> }, DoubleQuotes::Atom => { let borrowed_str = s.borrow(); + let mut atom = String::new(); + + for c in borrowed_str[s.cursor() ..].chars() { + atom += &char_to_string(c); + } self.push_char('"'); - self.append_str(&borrowed_str[s.cursor() ..]); + self.append_str(&atom); self.push_char('"'); } } -- 2.54.0