@pitr-ch, it took me a while to figure out how your suggestion worked. I would probably just do something simple instead of trying to be clever:

```ruby
description = task.result_description
description.is_a?(String) ? description.gsub("\n", "<br/>") : description
```