Skip to content

Fix ignoring whitespace #284

Open
Open
@vmarkovtsev

Description

@vmarkovtsev

Current behavior: we calculate diffs with removed whitespace. It is wrong because the new and deleted files are counted with whitespace characters.

src, dst, _ := dmp.DiffLinesToRunes(stripWhitespace(strFrom, diff.WhitespaceIgnore), stripWhitespace(strTo, diff.WhitespaceIgnore))

Desired behavior: change BlobCache to remove whitespace at blob loading time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions