Skip to main content
All CollectionsBuild AutomationsWorkflowsData
Format ASCII Tables for Emails
Format ASCII Tables for Emails

Ensure your ASCII tables retain their alignment and readability in emails.

Updated over a month ago

Maintain the integrity of ASCII table outputs when sharing them via email. When ASCII table outputs from workflows are sent via email in plain text format, their alignment may appear disrupted, resembling the following example with a jagged right edge. This misalignment is often caused by the email's use of a proportional font, detracting from the data's readability and presentation.

Transform your ASCII table's appearance in emails with two straightforward adjustments, ensuring a fixed-width font that preserves your table's layout and enhances legibility:

  1. Wrap Your Table in HTML: Encase the ASCII table output within HTML tags (<pre> and </pre>). This simple action shifts the font to a fixed-width type, aligning your table perfectly.

  2. Adjust the Content Type: Change your email's output content type to text/html, charset=UTF-8. This solidifies your font adjustments and also broadens character support, ensuring your content is universally accessible and retains its intended format.

Use the HTML pre tag

Here is the result:

Did this answer your question?