Can't keep a multiline string inside automations.yaml

Hello.
I have an automation that requires a multiline string. I tried using several methods like using a plain string like 'content with line breaks' I tried using the > operator etc, but every time I update any automation using the GUI this string is reformatted and all the line breaks are removed. Is there any way to keep this as a human editable multiline string?