mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
ruff_annotate_snippets: update snapshot for single ASCII whitespace source
The change to the rendering code is elaborated on in more detail here, where I attempted to upstream it: https://github.com/rust-lang/annotate-snippets-rs/pull/169 Otherwise, the snapshot diff also shows a bug fix: a `^` is now rendered where as it previously was not.
This commit is contained in:
parent
59edee2aca
commit
88df168b63
2 changed files with 2 additions and 5 deletions
|
@ -1394,9 +1394,7 @@ fn format_body(
|
|||
}
|
||||
})
|
||||
.sum();
|
||||
if line.chars().any(|c| !c.is_whitespace()) {
|
||||
whitespace_margin = min(whitespace_margin, leading_whitespace);
|
||||
}
|
||||
whitespace_margin = min(whitespace_margin, leading_whitespace);
|
||||
max_line_len = max(max_line_len, line_length);
|
||||
|
||||
let line_start_index = line_range.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue