At the end of this message is a simple HTML file demonstrating the problem.
If the resulting HTML file for a body or attachment in a “Send an email” step contains a <colgroup> with one or more unclosed <col> tags, the task fails with the following error:
Error encountered in step with name [Email HTML export]: Error: Task ‘Email export’ Body template. Template could not be loaded due to exception: The ‘col’ start tag on line 12 position 8 does not match the end tag of ‘colgroup’. Line 13, position 7.
If I rewrite my template to include closing </col> tags, the “Send an email” step works.
The <col> element is a void element, per MDN, and so putting </col> tags into the output fails strict HTML validation, such as that provided by W3C..
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>Col Bug</title>
</head>
<body>
<table>
<colgroup>
<col style="width: 4em">
<col style="width: 20em">
<col style="width: auto">
</colgroup>
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="CeNt2k5GXs4r2ruY_etuJ8">
<td>E1</td>
<td>Customer</td>
<td>
The customer.</td>
</tr>
<tr id="hCGqy7QnJb4SMxph1jUOU9">
<td>E2</td>
<td>Clerk</td>
<td>
The clerk interacting with the customer.</td>
</tr>
</tbody>
</table>
</body>
</html>