Changeset 122338 in webkit
- Timestamp:
- Jul 11, 2012 9:56:18 AM (12 years ago)
- Location:
- trunk/Websites/bugs.webkit.org
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Websites/bugs.webkit.org/ChangeLog
r122276 r122338 1 2012-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 1 11 2012-07-10 Adam Barth <abarth@webkit.org> 2 12 -
trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb
r119010 r122338 17 17 $last_prettify_part_count = { "remove" => 0, "add" => 0, "shared" => 0, "binary" => 0, "extract-error" => 0 } 18 18 string = normalize_line_ending(string) 19 str = HEADER + "\n"19 str = "#{HEADER}<body>\n" 20 20 21 21 # Just look at the first line to see if it is an SVN revision number as added … … 25 25 match = /^Subversion\ Revision: (\d*)$/.match(line) 26 26 unless match.nil? 27 str += "<span class='revision'>" + match[1] + "</span>\n"27 str << "<span class='revision'>#{match[1]}</span>\n" 28 28 $svn_revision = match[1].to_i; 29 29 end … … 34 34 35 35 $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>" 37 38 end 38 39 … … 129 130 130 131 HEADER =<<EOF 132 <html> 133 <head> 131 134 <style> 132 135 :link, :visited { … … 484 487 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> 485 488 <script src="code-review.js?version=43"></script> 489 </head> 486 490 EOF 487 491
Note: See TracChangeset
for help on using the changeset viewer.