annotate-snippets-rs icon indicating copy to clipboard operation
annotate-snippets-rs copied to clipboard

Library for snippet annotations

Results 58 annotate-snippets-rs issues
Sort by recently updated
recently updated
newest added

During the process of upgrading our copy of `annotate-snippets` in Ruff, I discovered that the way empty spans after a line terminator are handled had changed. Previously: ```rust use annotate_snippets::{...

Ref #172 The high level problem I ran into with integrating `annotate-snippets` into Rust---and specifically, an upgrade from `0.9` to `0.11`---was that trimming long lines automatically inserts a `...`. This...

This adds a new API for overriding the use of `...` to indicate a cut or trimmed line. In the case of Ruff, we didn't want to use `...` since...

When combined with an empty `title`, this results in the header being omitted entirely. This isn't what @epage suggested in #167 since changing our rendering to pass in a custom...

This PR includes a small fix (that I am not at all sure about) and a regression test that fails on current master. The input here is just a single...

Previously, it was possible for a `...` to be inserted when no trimming was actually done. For example: ``` | 1 | version = "0.1.0" 2 | # Ensure that...

I'm somewhat new to this crate, so apologies for any category or vernacular errors that I make. I'm looking at migrating [ruff](https://github.com/astral-sh/ruff) from `annotate-snippets 0.9` to `annotate-snippets 0.11`. But I'm...

A part solution to #97, although only really useful for the title. For the inline annotations, this currently gives no underlining.