Don't forget to normalize the translated message
This commit is contained in:
parent
9bd60a60ce
commit
ec0975dd6b
3 changed files with 23 additions and 1 deletions
|
@ -2346,7 +2346,13 @@ impl FileWithAnnotatedLines {
|
|||
}
|
||||
|
||||
let label = label.as_ref().map(|m| {
|
||||
emitter.translate_message(m, args).map_err(Report::new).unwrap().to_string()
|
||||
normalize_whitespace(
|
||||
&emitter
|
||||
.translate_message(m, &args)
|
||||
.map_err(Report::new)
|
||||
.unwrap()
|
||||
.to_string(),
|
||||
)
|
||||
});
|
||||
|
||||
if lo.line != hi.line {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue