##// END OF EJS Templates
Fixed error on repository when there are no comments in a changeset (#4126)....
Jean-Philippe Lang -
r2869:86874785b7e5
parent child
Show More
@@ -214,7 +214,7 module ApplicationHelper
214
214
215 # Truncates and returns the string as a single line
215 # Truncates and returns the string as a single line
216 def truncate_single_line(string, *args)
216 def truncate_single_line(string, *args)
217 truncate(string, *args).gsub(%r{[\r\n]+}m, ' ')
217 truncate(string.to_s, *args).gsub(%r{[\r\n]+}m, ' ')
218 end
218 end
219
219
220 def html_hours(text)
220 def html_hours(text)
General Comments 0
You need to be logged in to leave comments. Login now