Changeset 80795 in webkit


Ignore:
Timestamp:
Mar 10, 2011 4:56:37 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-03-10 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>

Reviewed by Adam Roben.

Formatted Diff for attachment 23920 is mangled
https://bugs.webkit.org/show_bug.cgi?id=21222

The mangled diff files mentioned in the bug were using Mac line
ending and this was causing problems for String#each_line. Now we
normalize the line endings in patch data before processing it.

  • PrettyPatch/PrettyPatch.rb:
Location:
trunk/Websites/bugs.webkit.org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/bugs.webkit.org/ChangeLog

    r80782 r80795  
     12011-03-10  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
     2
     3        Reviewed by Adam Roben.
     4
     5        Formatted Diff for attachment 23920 is mangled
     6        https://bugs.webkit.org/show_bug.cgi?id=21222
     7
     8        The mangled diff files mentioned in the bug were using Mac line
     9        ending and this was causing problems for String#each_line. Now we
     10        normalize the line endings in patch data before processing it.
     11
     12        * PrettyPatch/PrettyPatch.rb:
     13
    1142011-03-10  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
    215
  • trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb

    r80782 r80795  
    1313
    1414    def self.prettify(string)
     15        string = normalize_line_ending(string)
    1516        fileDiffs = FileDiff.parse(string)
    1617
     
    8889        Websites
    8990    ]
     91
     92    def self.normalize_line_ending(s)
     93        s.gsub /\r\n?/, "\n"
     94    end
    9095
    9196    def self.find_url_and_path(file_path)
Note: See TracChangeset for help on using the changeset viewer.