Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only diff markup is color, which is lost in many situations #51

Open
tv42 opened this issue Oct 9, 2024 · 0 comments
Open

Only diff markup is color, which is lost in many situations #51

tv42 opened this issue Oct 9, 2024 · 0 comments

Comments

@tv42
Copy link

tv42 commented Oct 9, 2024

expect-test/src/lib.rs

Lines 721 to 725 in 0eba05e

let formatted = match chunk {
dissimilar::Chunk::Equal(text) => text.into(),
dissimilar::Chunk::Delete(text) => format!("\x1b[4m\x1b[31m{}\x1b[0m", text),
dissimilar::Chunk::Insert(text) => format!("\x1b[4m\x1b[32m{}\x1b[0m", text),
};

This results in non-useful outputs under e.g. nextest run, when copy-pasted, and with some CI systems.

I would copy-paste an example here but, duh...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant