Hello, I can't seem to get my Advanced PDF to res...
# advancedpdf
s
Hello, I can't seem to get my Advanced PDF to respect the <br> tags on a long text address field so it prints on multiple lines. Oddly, it's the only field in the Saved Search that's a join. I've tried the following: NetSuite Long Text Field Console Elements [F12] Result:
Copy code
TIM TESTER
<br>
123 MAIN STREET
<br>
CHICAGO, IL 63022
Attempts
Copy code
#1
<table border="0" cellpadding="1" cellspacing="1" style="width:100%;">
  <#list result.custentity_long_text_address?split("<br />") as z>
    <tr>
	<td>${z}<br /></td>
	</tr></#list></table>

#2 
<table border="0" cellpadding="1" cellspacing="1" style="width:100%;">
  <#list result.custentity_long_text_address?split("<br>") as z>
    <tr>
	<td>${z}<br /></td>
	</tr></#list></table>
Copy code
#3 (without table)

${result.custentity_long_text_address?replace("<br>", "<br />")}
s
Need more context but may I suggest using <addr1> <br /> <addr2> <br /> instead of using the whole address field. This eliminates the need to split.
s
Unfortunately, the address is housed in a single long text field.