I am stuck at a simple yet annoying issue. I have a JETI e-mail setup with velocity to check the values of a customfield, if the field has a value it will add text and the field value to a string variable ($email) then output the string in the email body. However it leaves a giant white space in the e-mail. How can i remove this white space?
example of code:
#if($!jetiFieldRenderer.renderCustomField($issue, 'customfield_11801'))
#set($email = "$email $newline Department: #renderCustomField($issue, 'customfield_11801')")
#end
#if($!jetiFieldRenderer.renderCustomField($issue, 'customfield_11713'))
#set($email = "$email $newline Start Date: #renderCustomField($issue, 'customfield_11713')")
#end
#if($!jetiFieldRenderer.renderCustomField($issue, 'customfield_11804'))
#set($email = "$email $newline Location: #renderCustomField($issue, 'customfield_11804')")
#end
....
$email