correct formatting bugs

This commit is contained in:
Mark Thom
2017-05-17 16:40:05 -06:00
parent 5efee09434
commit 0063329e3e
2 changed files with 15 additions and 13 deletions

View File

@@ -306,14 +306,16 @@ pub fn print(wam: &mut Machine, result: EvalSession) {
EvalSession::InitialQuerySuccess(alloc_locs, mut heap_locs) => { EvalSession::InitialQuerySuccess(alloc_locs, mut heap_locs) => {
print!("true"); print!("true");
if heap_locs.is_empty() {
if !wam.or_stack_is_empty() { if !wam.or_stack_is_empty() {
print!(" "); print!(" ");
} }
println!("."); println!(".");
if heap_locs.is_empty() {
return; return;
} else {
println!("");
} }
loop { loop {