I have a google sheet with a script behind it that generates an email. The Body of the email is an HTML table. This all works good except for how the table is structured in the email. Due to the length of the link in the last line the second column get pushed over and then there is a large space between the text and the returned value. Is there anyway to modify the table structure to keep column 2 next to column 1? Maybe there is an alignment option or something to allow the link to overflow? Here is the table HTML.
var html = '<table>';
html += Utilities.formatString('<tr><td>%s</td><td colspan ="2"><font size="4" color="red"><b>%s</b></font></td><td>%s</td></tr>', ' ', '**** DO NOT REPLY TO THIS EMAIL ****', ' ');
html += Utilities.formatString('<tr><td>%s</td><td>%s</td><td>%s</td></tr>', ' ', ' ', ' '); //empty line
html += Utilities.formatString('<tr><td>%s</td><td>%s</td><td>%s</td></tr>', ' ', ' ', ' '); //empty line
html += Utilities.formatString('<tr><td>%s</td><td colspan ="2">%s</td><td>%s</td></tr>', ' ', 'Please review findings', ' ');
html += Utilities.formatString('<tr><td>%s</td><td colspan ="2"><font size="5"><b>%s</b></font></td><td>%s</td></tr>', ' ', 'VISUAL WELDING AUDIT', ' ');
html += Utilities.formatString('<tr><td>%s</td><td><strong>%s</strong></td><td>%s</td></tr>', ' ', 'Date and Time of Audit:', e.values[0]);
html += Utilities.formatString('<tr><td>%s</td><td><strong>%s</strong></td><td>%s</td></tr>', ' ', 'Auditor:', e.values[1]);
html += Utilities.formatString('<tr><td>%s</td><td><strong>%s</strong></td><td>%s</td></tr>', ' ', 'Line/Location Audited:', e.values[2]);
html += Utilities.formatString('<tr><td>%s</td><td><strong>%s</strong></td><td>%s</td></tr>', ' ', 'Area Responsible:', e.values[3]);
html += Utilities.formatString('<tr><td>%s</td><td>%s</td><td>%s</td></tr>', ' ', RoGpf(e.values[4]), RoG(e.values[4]));
html += Utilities.formatString('<tr><td>%s</td><td><strong>%s</strong></td><td>%s</td></tr>', ' ', 'Person Notified:', e.values[9]);
html += Utilities.formatString('<tr><td>%s</td><td><strong>%s</strong></td><td>%s</td></tr>', ' ', 'Disposition:', e.values[5]);
html += Utilities.formatString('<tr><td>%s</td><td><strong>%s</strong></td><td>%s</td></tr>', ' ', 'Discontinuity Found:', e.values[6]);
html += Utilities.formatString('<tr><td>%s</td><td><strong>%s</strong></td><td>%s</td></tr>', ' ', 'Safety Findings Comment:', e.values[7]);
html += Utilities.formatString('<tr><td>%s</td><td><strong>%s</strong></td><td>%s</td></tr>', ' ', 'Additonal Comments:', e.values[8]);
html += Utilities.formatString('<tr><td>%s</td><td>%s</td><td>%s</td></tr>', ' ', ' ', ' '); //empty line
html += Utilities.formatString('<tr><td>%s</td><td>%s</td><td>%s</td></tr>', ' ', ' ', ' '); //empty line
html += Utilities.formatString('<tr><td>%s</td><td colspan ="2">%s</td><td>%s</td></tr>', ' ', 'Link to Dashboard:', ' ');
html += Utilities.formatString('<tr><td>%s</td><td colspan ="2">%s</td><td>%s</td></tr>', ' ', 'https://docs.google.com/spreadsheets/d/e/2PACX-1vQj3j6QgrCyvULYo1IeE3q9L9Gzvz2tVvNI8650nhl-L0cQwyx93tRIeuXP9Q_xxxxxxxxxxxxxxxxx/pubhtml#', ' ');
html += '</table>';
Thank you!