Changeset 122338 in webkit


Ignore:
Timestamp:
Jul 11, 2012 9:56:18 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Deleting content at the top of prettypatch emails destroys HTML formatting
https://bugs.webkit.org/show_bug.cgi?id=90700
<rdar://problem/7488232>

Patch by Alice Cheng <alice_cheng@apple.com> on 2012-07-11
Reviewed by David Kilzer.

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

Legend:

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

    r122276 r122338  
     12012-07-11  Alice Cheng  <alice_cheng@apple.com>
     2
     3        Deleting content at the top of prettypatch emails destroys HTML formatting
     4        https://bugs.webkit.org/show_bug.cgi?id=90700
     5        <rdar://problem/7488232>
     6
     7        Reviewed by David Kilzer.
     8
     9        * PrettyPatch/PrettyPatch.rb:
     10
    1112012-07-10  Adam Barth  <abarth@webkit.org>
    212
  • trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb

    r119010 r122338  
    1717        $last_prettify_part_count = { "remove" => 0, "add" => 0, "shared" => 0, "binary" => 0, "extract-error" => 0 }
    1818        string = normalize_line_ending(string)
    19         str = HEADER + "\n"
     19        str = "#{HEADER}<body>\n"
    2020
    2121        # Just look at the first line to see if it is an SVN revision number as added
     
    2525            match = /^Subversion\ Revision: (\d*)$/.match(line)
    2626            unless match.nil?
    27                 str += "<span class='revision'>" + match[1] + "</span>\n"
     27                str << "<span class='revision'>#{match[1]}</span>\n"
    2828                $svn_revision = match[1].to_i;
    2929            end
     
    3434
    3535        $last_prettify_file_count = fileDiffs.length
    36         str += fileDiffs.collect{ |diff| diff.to_html }.join
     36        str << fileDiffs.collect{ |diff| diff.to_html }.join
     37        str << "</body></html>"
    3738    end
    3839
     
    129130
    130131    HEADER =<<EOF
     132<html>
     133<head>
    131134<style>
    132135:link, :visited {
     
    484487<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    485488<script src="code-review.js?version=43"></script>
     489</head>
    486490EOF
    487491
Note: See TracChangeset for help on using the changeset viewer.