New lines in formula are not shown in the cell

Newlines in formula can be confusing, and some frontend components are not showing them properly.

Steps to reproduce:

  • Create a formula with a simple string and a new line. To do that, type 'a, Shift+Enter, 'b''. Notice that the formula editor shows the new lines, while the confirmed formula doesn't show them (and I think it should).
  • Save the field and notice that in the grid view, the new lines are not visible
  • Open the row edit modal, and notice that the new lines are there and are visible in the textarea used to show the cell value in the row edit modal.