We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I wrote a test to demonstrate this:
#[test] fn lf_in_crlf() { let source = "a\r\nb"; let input = Level::Error.title("").snippet( Snippet::source(source) .origin("file/path") .line_start(3) .annotation(Level::Error.span(2..3)), // \n ); let expected = str![[r#" error --> file/path:1:1 | 3 | a 4 | | b | |_^ |"#]] .indent(false); let renderer = Renderer::plain().anonymized_line_numbers(false); assert_eq(expected, renderer.render(input).to_string()); }
This only happens when a span points to exactly the \n byte that's preceded by \r
\n
\r
I believe this behavior is present since at least 0.10.0
The text was updated successfully, but these errors were encountered:
annotate-snippets
0.11
This was fixed in #131
Sorry, something went wrong.
No branches or pull requests
I wrote a test to demonstrate this:
This only happens when a span points to exactly the
\n
byte that's preceded by\r
I believe this behavior is present since at least 0.10.0
The text was updated successfully, but these errors were encountered: