mirror of
				https://github.com/redmine/redmine.git
				synced 2025-10-31 10:25:55 +01:00 
			
		
		
		
	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:
		| @@ -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 = [] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user