Project

General



Profile

« Previous | Next » 

Revision 2632

Fixes UnifiedDiff.

View differences:

sandbox/rails-2.3/lib/redmine/unified_diff.rb
20 20
  class UnifiedDiff < Array  
21 21
    def initialize(diff, options={})
22 22
      options.assert_valid_keys(:type, :max_lines)
23
      diff = diff.split("\n") if diff.is_a?(String)
23 24
      diff_type = options[:type] || 'inline'
24 25
      
25 26
      lines = 0

Also available in: Unified diff