Skip to main content

Is there a way to remove the blank lines when conditionally rendering fields?  Here is my template config:


{{OtherStreet}} {{OtherCity}}{{#OtherCity}},{{/OtherCity}} {{OtherState}} {{OtherPostalCode}} {{#Fax}}Fax: {{/Fax}} {{Fax}} {{#HomePhone}}Home Phone: {{/HomePhone}}{{HomePhone}} {{#OtherPhone}}Other Phone: {{/OtherPhone}}{{OtherPhone}} {{#AssistantName}}Assistant: {{/AssistantName}}{{AssistantName}} {{#AssistantPhone}}Asst. Phone: {{/AssistantPhone}}{{AssistantPhone}}<br>

Move the condition close statement outside the field name and carriage return for that particular field.   Something like this: 


{{#Fax}}Fax: {{Fax}} {{/Fax}}{{#HomePhone}}Home Phone:{{HomePhone}} {{/HomePhone}}{{#OtherPhone}}Other Phone: {{OtherPhone}} {{/OtherPhone}} 



Works like a champ…thanks!