Skip to content

🐛 Unable to remove extra blank line preceding file and hunk headers #1944

@friederbluemle

Description

@friederbluemle

It seems that delta always inserts a blank line before a file or hunk header.

Plain git diff

Image

delta

Image

Note the two blank lines marked with a red arrow before hunk headers and one blank line marked with a blue arrow before file header.

Is there a configuration to remove the empty lines? Especially when not using line numbers, the output can be very confusing (and unnecessarily verbose). There is no way to tell if the blank line is actually part of the source code, or inserted later on for formatting only purposes.

I tried using file-decoration-style = omit and hunk-header-decoration-style = omit but that also won't remove it.

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