CADbloke / google-diff-match-patch

Automatically exported from code.google.com/p/google-diff-match-patch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Diff has trouble with this article

GoogleCodeExporter opened this issue · comments

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

  • Merged into: #38
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

  • Added labels: Priority-High
  • Removed labels: Priority-Medium
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

  • Added labels: ****
  • Removed labels: ****
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

  • Changed state: Duplicate
  • Added labels: ****
  • Removed labels: ****