summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/_file.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/common/_file.html.erb b/app/views/common/_file.html.erb
index 418073efa..22126b949 100644
--- a/app/views/common/_file.html.erb
+++ b/app/views/common/_file.html.erb
@@ -2,13 +2,13 @@
<table class="filecontent syntaxhl">
<tbody>
<% line_num = 1 %>
-<% syntax_highlight(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each_line do |line| %>
+<% syntax_highlight_lines(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each 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>
+ <pre><%= line.html_safe %></pre>
</td>
</tr>
<% line_num += 1 %>