Feature #42041 » 0001-Increase-the-maximum-description-length-to-240-chara.patch
| app/helpers/application_helper.rb | ||
|---|---|---|
|
end
|
||
|
def format_activity_description(text)
|
||
|
h(text.to_s.truncate(120).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')).
|
||
|
h(text.to_s.truncate(240).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')).
|
||
|
gsub(/[\r\n]+/, "<br />").html_safe
|
||
|
end
|
||
- « Previous
- 1
- 2
- 3
- Next »