Carriage return or new line in a Text block (string)

Hi there,
Is there a way to add a carriage return (\r) - new line (\n) in a text block?

Simply adding it does not seem to work?
Screenshot 2021-11-06 at 14.51.05

I read in ios - How to add line break for UILabel? - Stack Overflow that it should work for a UIlabel in swift, but the trick is to set the Number of Lines lines to zero. I did this for the label, but it does not seem to change.
Screenshot 2021-11-06 at 14.52.53

Any ideas? Not possible?

Hi, you are right that \n is not working at the moment and we will check it to add it to a future version.

As a workaround, you can use the Percent Encoding
In order to use it in Kodika, you will need to use the %0A where you want to have a new line and then remove the percent-encoding from the Text.

Hint: There is no reason to add a space before and after the %0A so you can use it also like this.

I just added the spaces in the previous example to be more visible.

1 Like