Loading

Learn why paragraph spacing is farther apart in the received HTML email

Date de publication: Jun 11, 2026
Description

When creating an HTML email template in Salesforce, paragraphs that appear single-spaced in the editor may display with larger gaps (double spacing) when received in certain email clients such as Microsoft Outlook. The email displays correctly in Gmail and similar clients.
This behavior is caused by how different email clients interpret HTML line breaks. Some email clients apply double spacing whenever a line break tag appears in the HTML source, resulting in unintended white space between paragraphs.
HTML email templates in Salesforce allow agents and administrators to create formatted email content using HTML markup. The rendering of this HTML can vary significantly across different email clients.

Résolution

This article explains how to modify an HTML email template in Salesforce to prevent double spacing in email clients that interpret line breaks differently.

How to Fix Double Spacing in HTML Email Templates

The fix involves replacing standard line breaks (which cause double spacing in some clients) with forced single line breaks using Shift + Enter.

  1. Open the affected email template in Salesforce.
  2. Click the Edit HTML Version button.
  3. Locate each empty line between paragraphs in the HTML source.
  4. Place your cursor on the blank line and press the Delete key to remove it.
  5. Press Shift + Enter (Return on Mac) to insert a single-line break instead.

This ensures that only a single `
` line break is written into the HTML code, which most email clients render as a single line of space.
Note: After making changes, send a test email and validate the spacing across multiple email clients (for example, Microsoft Outlook, Gmail, Apple Mail) to confirm consistent rendering.

 

Ressources supplémentaires

Create HTML Email Templates in Salesforce Classic — Salesforce Help

Numéro d’article de la base de connaissances

000384332

 
Chargement
Salesforce Help | Article