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
This commit is contained in:
Toshi MARUYAMA 2011-08-20 06:50:57 +00:00
parent 75ce76cd74
commit aa35ef4be8
1 changed files with 4 additions and 4 deletions

View File

@ -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 = []