##// END OF EJS Templates
Show line breaks in activity events summary....
Jean-Philippe Lang -
r2345:4c312f3d6b67
parent child
Show More
@@ -116,7 +116,7 module ApplicationHelper
116 end
116 end
117
117
118 def format_activity_description(text)
118 def format_activity_description(text)
119 h(truncate(text.to_s, 250).gsub(%r{<(pre|code)>.*$}m, '...'))
119 h(truncate(text.to_s, 120).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')).gsub(/[\r\n]+/, "<br />")
120 end
120 end
121
121
122 def distance_of_date_in_words(from_date, to_date = 0)
122 def distance_of_date_in_words(from_date, to_date = 0)
General Comments 0
You need to be logged in to leave comments. Login now