]> Repositorios git - scryer-prolog.git/commitdiff
write [a,b,c] correctly with write_canonical (#349)
authorMark Thom <[email protected]>
Wed, 15 Apr 2020 05:25:15 +0000 (23:25 -0600)
committerMark Thom <[email protected]>
Wed, 15 Apr 2020 05:25:15 +0000 (23:25 -0600)
src/prolog/heap_print.rs

index 186a21286f662dc31663de2124adbf3ce8c04feb..ed9b9859fe41c7d62e0f3b96c4d68907b4df104a 100644 (file)
@@ -1083,7 +1083,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
         let at_cdr = self.at_cdr(",");
 
         if !at_cdr && Addr::EmptyList == end_addr {
-            if !self.machine_st.flags.double_quotes.is_codes() {
+            if self.machine_st.flags.double_quotes.is_chars() && !self.ignore_ops {
                 self.print_proper_string(buf, max_depth);
                 return;
             }