diff --git a/app/views/documents/_document.rhtml b/app/views/documents/_document.rhtml index 55864ee8..81e039be 100644 --- a/app/views/documents/_document.rhtml +++ b/app/views/documents/_document.rhtml @@ -1,3 +1,3 @@

<%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %>
-<% unless document.description.empty? %><%=h truncate document.description, 250 %>
<% end %> +<% unless document.description.empty? %><%=h(truncate(document.description, 250)) %>
<% end %> <%= format_time(document.created_on) %>

\ No newline at end of file