fixed: no diff display with one line files [#8883]

git-svn-id: http://redmine.rubyforge.org/svn/trunk@276 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-02-26 21:32:16 +00:00
parent ae998984a0
commit 77938cc11e
1 changed files with 2 additions and 2 deletions

View File

@ -8,9 +8,9 @@ line_num_l = 0
line_num_r = 0 %> line_num_r = 0 %>
<% @diff.each do |line| %> <% @diff.each do |line| %>
<% <%
if line =~ /^@@ (\+|\-)(\d+),\d+ (\+|\-)(\d+),\d+ @@/ if line =~ /^@@ (\+|\-)(\d+)(,\d+)? (\+|\-)(\d+)(,\d+)? @@/
line_num_l = $2.to_i line_num_l = $2.to_i
line_num_r = $4.to_i line_num_r = $5.to_i
if parsing %> if parsing %>
<tr class="spacing"><td colspan="3">&nbsp;</td></tr> <tr class="spacing"><td colspan="3">&nbsp;</td></tr>
<% end <% end