diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-08-20 06:50:57 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-08-20 06:50:57 +0000 |
commit | aa35ef4be8b3f5ede29bd433b6f02f731d95a23f (patch) | |
tree | 10b6f870fcbfdc86c8e638df42a10217b4731960 /lib | |
parent | 75ce76cd749e387a4e65be4389c8b4f4631e056d (diff) | |
download | redmine-aa35ef4be8b3f5ede29bd433b6f02f731d95a23f.tar.gz redmine-aa35ef4be8b3f5ede29bd433b6f02f731d95a23f.zip |
remove trailing white-spaces from lib/diff.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6469 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/diff.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/diff.rb b/lib/diff.rb index f88e7fbb1..a80ef4d14 100644 --- a/lib/diff.rb +++ b/lib/diff.rb @@ -9,14 +9,14 @@ module RedmineDiff afinish = a.length-1 bfinish = b.length-1 mvector = [] - + # First we prune off any common elements at the beginning while (astart <= afinish && bstart <= afinish && a[astart] == b[bstart]) mvector[astart] = bstart astart += 1 bstart += 1 end - + # now the end while (astart <= afinish && bstart <= bfinish && a[afinish] == b[bfinish]) mvector[afinish] = bfinish @@ -27,7 +27,7 @@ module RedmineDiff bmatches = b.reverse_hash(bstart..bfinish) thresh = [] links = [] - + (astart..afinish).each { |aindex| aelem = a[aindex] next unless bmatches.has_key? aelem @@ -118,7 +118,7 @@ module RedmineDiff @difftype = diffs_or_a.class end end - + def match(ai, bi) @diffs.push @curdiffs unless @curdiffs.empty? @curdiffs = [] |