Skip to content

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

@tv42

Description

@tv42

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions