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