Velocity Templates - New Line

后端 未结 6 1184
醉话见心
醉话见心 2021-02-13 04:07

I\'ve been working with Apache\'s Velocity engine and a custom template.
The thing is, that I haven\'t been able to generate a String with the corresponding line breaks. I t

6条回答
  •  青春惊慌失措
    2021-02-13 04:56

    If you are using Velocity 1.5 or later, you can also just put the new line in there:

    #set( $foo = "this has a 
    line break" ) 
    

提交回复
热议问题