replace \n\r and \r\n by \n (#221)
This commit is contained in:
@@ -706,7 +706,7 @@ pub(crate) trait CallPolicy: Any {
|
|||||||
&BuiltInClauseType::Nl => {
|
&BuiltInClauseType::Nl => {
|
||||||
let mut stdout = stdout();
|
let mut stdout = stdout();
|
||||||
|
|
||||||
write!(stdout, "\n\r").unwrap();
|
write!(stdout, "\n").unwrap();
|
||||||
stdout.flush().unwrap();
|
stdout.flush().unwrap();
|
||||||
return_from_clause!(machine_st.last_call, machine_st)
|
return_from_clause!(machine_st.last_call, machine_st)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -722,11 +722,11 @@ impl Machine {
|
|||||||
|
|
||||||
let result = match keypress {
|
let result = match keypress {
|
||||||
ContinueResult::ContinueQuery => {
|
ContinueResult::ContinueQuery => {
|
||||||
print!(" ;\r\n");
|
print!(" ;\n");
|
||||||
self.continue_query(&alloc_locs)
|
self.continue_query(&alloc_locs)
|
||||||
}
|
}
|
||||||
ContinueResult::Conclude => {
|
ContinueResult::Conclude => {
|
||||||
print!(" ...\r\n");
|
print!(" ...\n");
|
||||||
self.absorb_snapshot(snapshot);
|
self.absorb_snapshot(snapshot);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -738,7 +738,7 @@ impl Machine {
|
|||||||
self.propagate_exception_to_toplevel(snapshot);
|
self.propagate_exception_to_toplevel(snapshot);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
print!("false.\r\n");
|
print!("false.\n");
|
||||||
self.absorb_snapshot(snapshot);
|
self.absorb_snapshot(snapshot);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -752,7 +752,7 @@ impl Machine {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if bindings.is_empty() && attr_goals.is_empty() {
|
if bindings.is_empty() && attr_goals.is_empty() {
|
||||||
print!("true.\r\n");
|
print!("true.\n");
|
||||||
} else {
|
} else {
|
||||||
let space = if !attr_goals.is_empty() {
|
let space = if !attr_goals.is_empty() {
|
||||||
if requires_space(&attr_goals, ".") {
|
if requires_space(&attr_goals, ".") {
|
||||||
@@ -768,7 +768,7 @@ impl Machine {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
print!("{}.\r\n", space);
|
print!("{}.\n", space);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user