Create text containing a new line with animation nodes
Characters Node in Animation Nodes



Line Break character is added to a list and then joined for output.

Click image above for larger view.





Animation Nodes. Search or Menu.  Composed image above.

Menu >> Add >> Text >> Characters. AN Menus have many items which creates vertical size. Thus the large image to minimize vertical scroll at BSE.