Skip to content
Snippets Groups Projects
Commit 4c312f3d authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

Show line breaks in activity events summary.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2347 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent cbdf9006
No related merge requests found
......@@ -116,7 +116,7 @@ module ApplicationHelper
end
def format_activity_description(text)
h(truncate(text.to_s, 250).gsub(%r{<(pre|code)>.*$}m, '...'))
h(truncate(text.to_s, 120).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')).gsub(/[\r\n]+/, "<br />")
end
def distance_of_date_in_words(from_date, to_date = 0)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment