correct formatting bugs
This commit is contained in:
@@ -306,14 +306,16 @@ pub fn print(wam: &mut Machine, result: EvalSession) {
|
||||
EvalSession::InitialQuerySuccess(alloc_locs, mut heap_locs) => {
|
||||
print!("true");
|
||||
|
||||
if !wam.or_stack_is_empty() {
|
||||
print!(" ");
|
||||
}
|
||||
|
||||
println!(".");
|
||||
|
||||
if heap_locs.is_empty() {
|
||||
if !wam.or_stack_is_empty() {
|
||||
print!(" ");
|
||||
}
|
||||
|
||||
println!(".");
|
||||
|
||||
return;
|
||||
} else {
|
||||
println!("");
|
||||
}
|
||||
|
||||
loop {
|
||||
@@ -349,7 +351,7 @@ pub fn print(wam: &mut Machine, result: EvalSession) {
|
||||
stdout.flush().unwrap();
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user