diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 49a2e5721..5d51e7075 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -30,7 +30,7 @@ module ProjectsHelper end def format_activity_description(text) - h(truncate(text, 250)) + h(truncate(text, 250).gsub(%r{<(pre|code)>.*$}m, '...')) end def project_settings_tabs