Skip to content

Add option to ignore line breaks (treat as spaces) (refs #373)#2945

Merged
sdottaka merged 13 commits into
masterfrom
feature/ignore-line-breaks
Sep 21, 2025
Merged

Add option to ignore line breaks (treat as spaces) (refs #373)#2945
sdottaka merged 13 commits into
masterfrom
feature/ignore-line-breaks

Conversation

@sdottaka

@sdottaka sdottaka commented Sep 16, 2025

Copy link
Copy Markdown
Member

This PR introduces a new comparison option "Ignore line breaks (treat as spaces)".
When enabled, line breaks within a diff hunk are treated as spaces, allowing differences caused only by line wrapping to be ignored.
This option is particularly useful in combination with whitespace options such as Ignore change or Ignore all.

Example:
With this option enabled, the following difference is ignored:

Left:
abc def

Right:
abc
def

@sdottaka sdottaka changed the title WIP: Add option to ignore line breaks (treat as spaces) (refs #373) Add option to ignore line breaks (treat as spaces) (refs #373) Sep 21, 2025
@sdottaka sdottaka marked this pull request as ready for review September 21, 2025 07:26
@sdottaka sdottaka merged commit c2202c0 into master Sep 21, 2025
4 checks passed
@sdottaka sdottaka deleted the feature/ignore-line-breaks branch September 28, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant