Too many line breaks in sent Gmail N8N node

I send emails using the Gmail node in n8n. The email is created by an LLM and sent via Gmail.

Now when the email is received, it contains many line breaks that were not there in the first place:

Where do these line breaks come from (see orange arrows) and most importantly, how can I get rid of them?

Information on your n8n setup

  • n8n version: [email protected]
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system:

Hi, are you sure these are line breaks? maybe it’s just the gmail formattting / re-organizing of the html based on the layout.
try to copy and paste in another document like word and confirm it’s actually in the data

Reg,
J.

Well, the line breaks are there, even when I copy them to a different document.

But they for sure are not there when the node created the email:

The orange lines indicate where line breaks are seen in the received email.

Good old google says the following:
https://support.google.com/mail/thread/22778647/why-are-my-emails-getting-sent-with-odd-line-breaks-instead-of-going-across-the-whole-page?hl=en

1 Like

Indeed, when I changed the Gmail node HTML, it does not force line breaks. Thanks!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.