OSDN Git Service

added parentheses to get rid of warning
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 2 Feb 2007 15:22:07 +0000 (15:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 2 Feb 2007 15:22:07 +0000 (15:22 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@218 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/documents/_document.rhtml

index 55864ee..81e039b 100644 (file)
@@ -1,3 +1,3 @@
 <p><%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %><br />\r
-<% unless document.description.empty? %><%=h truncate document.description, 250 %><br /><% end %>\r
+<% unless document.description.empty? %><%=h(truncate(document.description, 250)) %><br /><% end %>\r
 <em><%= format_time(document.created_on) %></em></p>
\ No newline at end of file