GerHobbelt / google-diff-match-patch

Diff, Match and Patch Library (original at http://google.com/p/google-diff-match-patch)
Apache License 2.0
201 stars 58 forks source link

JS Patches are not consistent with C# patches #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Doing this in JS 

diff_match_patch.prototype.patch_make("Welcome to Orchard!", "Welcome to 
Orchard!l");

produces this...

[{\"diffs\":[[0,\"Welcome to Orchard!\"],[1,\"kk\"],[0,\"Welcome to 
Orchard!\"]],\"start1\":0,\"start2\":0,\"length1\":38,\"length2\":40}]

Where as in C#, it will produces a different set of patches, this causes errors 
when applying those patches in C#

Original issue reported on code.google.com by jetski5...@gmail.com on 10 Feb 2013 at 11:44