diff-match-patch icon indicating copy to clipboard operation
diff-match-patch copied to clipboard

Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.

Results 100 diff-match-patch issues
Sort by recently updated
recently updated
newest added

When the function [`diff_match_patch.prototype.patch_addContext_`](https://github.com/google/diff-match-patch/blob/62f2e689f498f9c92dbc588c58750addec9b1654/javascript/diff_match_patch_uncompressed.js#L1619-L1630) adds context to a patch, it increments/decreases the index by a constant, `Patch_Margin = 4`. However, since JavaScript's `substring` function operates with UTF-16 code unit indexing,...

Given: ``` @@ -1,5 +1,5 @@ A B -C +XYZ D -E ``` On file: ``` A B C D E ``` It returns `'A\nB\nXYZD\nE'` but should be `'A\nB\nXYZ\nD'`

I've been working and testing this algorithm (C#), It works as expected most times but there are few cases where the algorithm doesn't return correct results. Example 1 : ![case...

`diff_prettyHtml` currently doesn't highlight leading/trailing space differences. Because spaces in HTML aren't visible. This pull request changes that. Instead of ```html ``` `diff_prettyHtml` now returns ```html   ``` resulting in...

While using the library, I have noticed that there is a serious problem with text diff, a very simple example is not working fine, looking at the code developed by...

Suppose if there are 5lines of code to check difference and there are changes in Line:1,2,5. The library is helping to print the difference with line number for line:1,2 and...

This is a suggested fix for issues #138 & #139

The C# implementation doesn't consider null value for the text field. The following line shows how to reproduce. This will not raise a warning on .NET Framework variations (v2.0, v3.x,...

The C# implementation doesn't consider null value for the text field. The following line shows how to reproduce. This will not raise a warning on .NET Framework variations (v2.0, v3.x,...

I came across one issue in which my files saved on git are differ in terms of line start or end. git diff or git UI handles it as it...