Force alert message to its own line.

This commit is contained in:
Josh Matthews 2020-03-23 11:08:42 -04:00 committed by GitHub
parent 191f6c41a0
commit 2aa415a3ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -615,7 +615,7 @@ impl WindowMethods for Window {
let mut stderr = stderr.lock();
let stdout = stdout();
let mut stdout = stdout.lock();
writeln!(&mut stdout, "ALERT: {}", s).unwrap();
writeln!(&mut stdout, "\nALERT: {}", s).unwrap();
stdout.flush().unwrap();
stderr.flush().unwrap();
}