Skip to content

Tab characters break layout #924

@AsumFace

Description

@AsumFace

Hi!

I am working with a codebase that uses tabs for indentation. Unfortunately tabs occuring on the left side of a diff, misalign the right side by one space to the left. It also appears to interact with line wrapping in a pathological way, resulting in fundamentally pretty short lines wrapped for no apparent reason.

Image

a.txt
b.txt

difft --version

Difftastic 0.67.0

Toolchain: 1.92.0
System:    linux x86_64

Issues with similar symptoms are:
#24
#212

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions