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.
This article explains how to modify an HTML email template in Salesforce to prevent double spacing in email clients that interpret line breaks differently.
The fix involves replacing standard line breaks (which cause double spacing in some clients) with forced single line breaks using Shift + Enter.
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.
Create HTML Email Templates in Salesforce Classic — Salesforce Help
000384332

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.