So yesterday this worked great. I had added a data...
# advancedpdf
b
So yesterday this worked great. I had added a data source to the renderer and the company address was perfectly shown with a break after each <br /> tag. Now for some reason the PDF shows these break tags in the PDF :S
Copy code
{companyaddress: "Name<br />Street<br />Postal code<br />Country"}
Does anyone know what I should try? From NetSuite the address comes in with those \r\n tags but I had replaced them with <br /> since without them nothing happened. But suddenly today I see those break tags actually being printed on the PDF.
Yesterday vs Today
s
The issue is with escaping, it is escaping the HTML code, so that it appears as written. New lines (\n) will get converted to <br /> automatically, so you can either use new lines,
"Name\nStreet\nPostal code\nCountry"
, or try disabling auto-escaping with
?no_esc
https://freemarker.apache.org/docs/dgui_misc_autoescaping.html#dgui_misc_autoescaping_disableautoesc
b
Hi Scott, I was able to to fix this by adding the following in the template
Copy code
?replace("<br />","<br />")