diff options
-rw-r--r-- | app/views/common/_file.html.erb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/app/views/common/_file.html.erb b/app/views/common/_file.html.erb index 13ad8bbda..db00c0617 100644 --- a/app/views/common/_file.html.erb +++ b/app/views/common/_file.html.erb @@ -3,8 +3,15 @@ <tbody> <% line_num = 1 %> <% syntax_highlight(filename, to_utf8(content)).each_line do |line| %> -<tr><th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th><td class="line-code"><pre><%= line %></pre></td></tr> -<% line_num += 1 %> + <tr> + <th class="line-num" id="L<%= line_num %>"> + <a href="#L<%= line_num %>"><%= line_num %></a> + </th> + <td class="line-code"> + <pre><%= line %></pre> + </td> + </tr> + <% line_num += 1 %> <% end %> </tbody> </table> |