Remove trailing whitespace from error messages
This commit is contained in:
@@ -954,7 +954,6 @@ impl EmitterWriter {
|
|||||||
// |
|
// |
|
||||||
for pos in 0..=line_len {
|
for pos in 0..=line_len {
|
||||||
draw_col_separator(buffer, line_offset + pos + 1, width_offset - 2);
|
draw_col_separator(buffer, line_offset + pos + 1, width_offset - 2);
|
||||||
buffer.putc(line_offset + pos + 1, width_offset - 2, '|', Style::LineNumber);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write the horizontal lines for multiline annotations
|
// Write the horizontal lines for multiline annotations
|
||||||
@@ -1344,7 +1343,11 @@ impl EmitterWriter {
|
|||||||
let buffer_msg_line_offset = buffer.num_lines();
|
let buffer_msg_line_offset = buffer.num_lines();
|
||||||
|
|
||||||
// Add spacing line
|
// Add spacing line
|
||||||
draw_col_separator(&mut buffer, buffer_msg_line_offset, max_line_num_len + 1);
|
draw_col_separator_no_space(
|
||||||
|
&mut buffer,
|
||||||
|
buffer_msg_line_offset,
|
||||||
|
max_line_num_len + 1,
|
||||||
|
);
|
||||||
|
|
||||||
// Then, the secondary file indicator
|
// Then, the secondary file indicator
|
||||||
buffer.prepend(buffer_msg_line_offset + 1, "::: ", Style::LineNumber);
|
buffer.prepend(buffer_msg_line_offset + 1, "::: ", Style::LineNumber);
|
||||||
|
|||||||
Reference in New Issue
Block a user