fix(error): normalize whitespace during msg_to_buffer
This commit is contained in:
parent
7908a1d654
commit
a2f275da51
3 changed files with 37 additions and 0 deletions
|
@ -1336,6 +1336,7 @@ impl EmitterWriter {
|
|||
// see?
|
||||
for (text, style) in msg.iter() {
|
||||
let text = self.translate_message(text, args).map_err(Report::new).unwrap();
|
||||
let text = &normalize_whitespace(&text);
|
||||
let lines = text.split('\n').collect::<Vec<_>>();
|
||||
if lines.len() > 1 {
|
||||
for (i, line) in lines.iter().enumerate() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue