]> source.dussan.org Git - redmine.git/commitdiff
remove trailing white-spaces from lib/diff.rb.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 06:50:57 +0000 (06:50 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 06:50:57 +0000 (06:50 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6469 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/diff.rb

index f88e7fbb1b9330bf44418ccfb8c73ae695f8e812..a80ef4d14d9a1536855dd759c4559ae11df61160 100644 (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 = []