basisbit / google-diff-match-patch

Automatically exported from code.google.com/p/google-diff-match-patch
Apache License 2.0
0 stars 0 forks source link

Diff has trouble with this article #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On the diff demo I tried comparing edits in an article and it's highlighting 
most of the text, instead of the minor changes.

http://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/demo_diff.html

text for left box: http://dl.dropbox.com/u/4055661/text1.txt
text for right box: http://dl.dropbox.com/u/4055661/text2.txt

Original issue reported on code.google.com by spac...@gmail.com on 27 Apr 2011 at 8:03

GoogleCodeExporter commented 8 years ago
Interesting.  I have not seen this issue before.  Even with the timeout set to 
0 and cleanup switched off, the diff is a no-op.  Will check this out...

Thank you.

Original comment by neil.fra...@gmail.com on 28 Apr 2011 at 10:26

GoogleCodeExporter commented 8 years ago
Confirmed.  This affects all versions.  Technically there's no bug, but this is 
clearly not expected behaviour.  As a simple workaround, turn off the line-mode 
speedup by passing False as the third argument to diff_main.

Working on finding a good solution...

Original comment by neil.fra...@gmail.com on 13 May 2011 at 10:35

GoogleCodeExporter commented 8 years ago
This is identical to Issue 38.  Let's see if we can solve this once and for all.

Original comment by neil.fra...@gmail.com on 13 May 2011 at 11:20