Going crazy trying to eliminate this newline

Here’s my scenario. I take new transactions from YNAB, import them into Notion, then I want a little alert to appear in the “Notes” section of my dashboard page in Notion (which is also a database item), so that I know a new transaction has been imported. My intention is then to delete this alert and go on with my life.

In order to ensure that the note is not overwritten in the event there is more than one transaction, I take the previous content of the Note and append the new content. But this is what happens every time: a new line gets added at the beginning.

CleanShot 2024-11-12 at 11.17.16

Obviously I want the individual transactions to be on separate lines, but it seems that wherever I position the [newline] (and I think I’ve tried every position at this point) I get a new line at the beginning.

As I understand it, the way I’ve written it, the ifempty function should work like this:

  • If the field is empty, write [New transaction].
  • if the field is not empty, write [Old transaction], add a newline, write [New transaction].

But what’s happening is:

  • if the field is empty, add a new line, write [New transaction].
  • if the field is not empty, write [Old transaction], add a newline, write [New transaction]

Please send help, this has me tearing my hair out.