Question
Whitespace is condition is false
Hello,
When using the Document Generation API with a condition, a blank line shows up when the condition is false. It works fine when the condition is true.
This is for a conditional to only render addressLine2 if the customer has it.
JSON:
{
"addressLine1": "120 Main Street",
"addressCity": "Horsham",
"addressState": "OH",
"addressZip": "11111"
}
Word Template:
{{addressLine1}}
{% conditional-section addressLine2 %}{{addressLine2}}{% end-section %}
{{addressCity}}, {{addressState}} {{addressZipcode}}
Output:

Please let me know if there is a way to resolve this.
