hello, I am working in an Advanced PDF/HTML templa...
# advancedpdf
a
hello, I am working in an Advanced PDF/HTML template and I am trying to get the first line of the shipping address using FreeMarker code. I am using ${record.billaddress?keep_before(‘\n’)} without success. Anyone has dealt with this issue?
m
It might be an html
<br />
(or something along those lines)
a
thanks, I have tried that too… not working either
Okay, finally found a way or work around, this works. Thanks @michoel, you got me in the track to try this. What I am doing is to use the html builtin, which converts the \n in <br />, then I get the first line. Here is the code:
${record.billaddress?html?keep_before(‘<br />’)}
works
thanks!
m
👍