I am having trouble with about a paragraph of whitespace appearing in email sent from our WHMCS custom emails. This happens when more than one conditional is used to display different options. The conditional below, when it arrives in the mailbox of our test account has a very large amount of whitespace between the 2 sections: Access Credentials
=============================Windows Server has been installed and Remote Desktop is enabled:IP Address/Host: {$service_dedicated_ip}Username: AdministratorAdministrator password: {$service_password}{foreach from=$service_config_options item=configoption}{if $configoption.option eq "IPMI KVM"}{if $configoption.value eq "Yes"}IPMI Details=============================IPMI IP Address: {$service_custom_field_ipmiipaddress}IPMI Username: {$service_custom_field_ipmiusername}IPMI Password: {$service_custom_field_ipmipassword}{else}{/if}{/if}{/foreach}
Does anyone have a solution?