From 1eb17b08f94148074823174ffe105e0497936999 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 2 Feb 2007 15:22:07 +0000 Subject: [PATCH] added parentheses to get rid of warning git-svn-id: http://redmine.rubyforge.org/svn/trunk@218 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/documents/_document.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/documents/_document.rhtml b/app/views/documents/_document.rhtml index 55864ee82..81e039be2 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