From: Mark Thom Date: Wed, 17 May 2017 22:46:04 +0000 (-0600) Subject: .. X-Git-Tag: v0.8.110~726 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=39f0f2bacb5eafe74eb8d0de809eb34810a21c43;p=scryer-prolog.git .. --- diff --git a/src/prolog/io.rs b/src/prolog/io.rs index 911406f6..abf71628 100644 --- a/src/prolog/io.rs +++ b/src/prolog/io.rs @@ -306,16 +306,14 @@ pub fn print(wam: &mut Machine, result: EvalSession) { EvalSession::InitialQuerySuccess(alloc_locs, mut heap_locs) => { print!("true"); - if heap_locs.is_empty() { - if !wam.or_stack_is_empty() { - print!(" "); - } + if !wam.or_stack_is_empty() { + print!(" "); + } - println!("."); + println!("."); + if heap_locs.is_empty() { return; - } else { - println!(""); } loop {