Skip to main content

Hi.  I am using Nintex O365. When I enter HTML directly into the body of an email, to create a table, it works fine (see IMAGE 1 below).  When I copy/paste the exact same HTML into a text variable and use the variable in the body of the email, the spacing is off (see image 2).  I use a Build String to create the HTML into the variable.  The HTML is shown below the 2 images. Does anyone know why this is happening and what I can do to fix this?

IMAGE 1

 

IMAGE 2:

 

HTML

<p> </p>
<table border="1" cellpadding="3" cellspacing="1" style="width:650px;"> <tbody> <tr> <td colspan="3" style="text-align:center;background-color:Gainsboro;"><strong>Weekly EForms Summary</strong></td>
</tr>
<tr> <td style="text-align:center;"><strong>Task Name</strong></td>
<td style="text-align:center;"><strong>Assigned To</strong></td>
<td style="text-align:center;"><strong>Date and Time</strong></td>
</tr>
<tr> <td>Accounts Receivable for Write Off Request - 188</td>
<td>xxxxxx, xxx x</td>
<td>10/6/2023 1:41:28 PM </td>
</tr>
<tr> <td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr> <td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr> <td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr> <td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr> <td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr> <td colspan="3" style="background-color:Gainsboro;">For questions, please complete a Service Now ticket.</td>
</tr>
</tbody></table>
<p>&nbsp;</p>

 

Hello @SShaffer2 ,

There is definitely some changes that occur between normal html code and using variables.

I personally had a different experience and a different result using NAC. 


I think if you update your html in the variable so the rows are “<tr style="height:20px">” then this might fix your issue.

Thanks,

Anthony


You might also try making sure the HTML is all in one continuous string with no line breaks in the text when you’re using the Build String action. Have the tag close and open characters (><) have nothing in between them.


Removing all spaces and making sure the HTML is all in one continuous string with no line breaks in the text did the trick.  Thank you!


Glad that worked for you! I had the same thing happen to me in the past and I stumbled upon this fix.


Reply