Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Freemarker line break built in function

Tags:

freemarker

In my code I am using "\n" for line breaks.

It was suggested that I need to avoid "\n" because this is different for different OS (UNIX, windows and MAC) and each operating system would interpret this character differently.

Though I am seeing the expected behavior, can anybody suggest, do we have any function for line break in free marker

like image 368
vissi Avatar asked Nov 03 '25 03:11

vissi


1 Answers

use ${'\n'} for inserting new line in specific place of the template

like image 68
Ilya Yevlampiev Avatar answered Nov 05 '25 17:11

Ilya Yevlampiev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!