summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-20 04:17:19 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-20 04:17:19 +0000
commit2d7f0d66b25965383d598107cf7c8b88f376944f (patch)
tree869d69bb3a864718fd36d512106e01e8b96c5f1a /app/views/common
parent05abcb0663fca6ed543e96f386c4ef80bcbde291 (diff)
downloadredmine-2d7f0d66b25965383d598107cf7c8b88f376944f.tar.gz
redmine-2d7f0d66b25965383d598107cf7c8b88f376944f.zip
code layout clean up app/views/common/_file.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7858 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/_file.html.erb11
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>