]> Repositorios git - scryer-prolog.git/commitdiff
..
authorMark Thom <[email protected]>
Wed, 17 May 2017 22:46:04 +0000 (16:46 -0600)
committerMark Thom <[email protected]>
Wed, 17 May 2017 22:46:04 +0000 (16:46 -0600)
src/prolog/io.rs

index 911406f6ace6f338f159c34f6b42f218f97f8ce7..abf71628a5fc83ddc32765bc20e22fb93d4455ba 100644 (file)
@@ -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 {