Knowledge Base

How to fix spaces disappearing from email signatures

Problem:

You have created an email signature template in the Signature template editor. When you preview the signature, some spaces are missing. The same spaces are missing when you send an email with this signature. However, when you open the signature in the Signature template editor, the spaces are all there.

Comparison between the signature preview (missing space) and the Signature template editor view (with space).
Fig. 1. Comparison between the signature preview (missing space) and the Signature template editor view (with space).

Solution:

This is a rare issue which is not related directly to CodeTwo software. Our signatures are coded in HTML which has some specific rules on how to interpret whitespaces (i.e. ordinary spaces inserted by pressing the space bar) based on their surrounding elements. Most often, spaces disappear when they are placed before formatted elements (for example, bold or underlined text).

To prevent a space from being accidentally removed, you should replace it with a non-breaking space, which is a character that has a similar visual function to a whitespace.

To do so:

  1. Run the Manage Signatures App, select the affected signature and open the Signature template editor as described in the User’s manual.
  2. Open the HTML source code view by clicking the Source button (Fig. 2., item 1).
  3. Find the whitespace that is missing from the preview in the HTML code (Fig. 2., item 2).

Viewing the signature source code to find the whitespace to replace.
Fig. 2. Viewing the signature source code to find the whitespace to replace.

  1. Remove the whitespace.
  2. Insert:
 

in place of the whitespace (without adding any additional spaces between it and the adjacent words and symbols) as shown in Fig. 3., item 1.

Inserting the non-breaking space and saving.
Fig. 3. Inserting the non-breaking space and saving.

  1. Save the changes in the HTML source code view and in the Signature template editor by clicking Apply & Close in their respective windows (Fig. 3., items 2 and 3).
  2. Check if the signature is displayed correctly in the Manage Signatures App preview.
  3. Submit changes by clicking the Save (ESIG for O365 rule save) button in the Manage Signatures App.

Important

Replace only the whitespace that is actually missing from your signature in the preview on the Design tab (in the Manage Signatures App). Trying to replace all whitespaces with non-breaking spaces as a method to prevent possible problems will cause the signature to be displayed incorrectly.