显示问题差别的html样式

tmp
ouyangxuhua 10 years ago
parent 30e703b9bf
commit e2024716e9

@ -2,7 +2,7 @@
<p>由<%= @journal.user %> 更新于 <%= format_time @journal.created_on %></p> <p>由<%= @journal.user %> 更新于 <%= format_time @journal.created_on %></p>
<div class="text-diff" style="word-break:break-all; word-wrap:break-word;"> <div class="text-diff" style="word-break:break-all; word-wrap:break-word;">
<%= simple_format_without_paragraph @diff.to_html%> <%= @diff.to_html.gsub("&lt;","<").gsub("&gt;",">").gsub("&quot;","\"").gsub("&amp;gt;", ">").gsub("&amp;lt;", "<").gsub("&amp;quot;", "\"").html_safe %>
</div> </div>
<p><%= link_to l(:button_back), issue_path(@issue), :onclick => 'history.back(); return false;' %></p> <p><%= link_to l(:button_back), issue_path(@issue), :onclick => 'history.back(); return false;' %></p>

Loading…
Cancel
Save