SOLVED

White space being added to email sections

Go to solution
Anonymous
Not applicable

White space being added to email sections

I've noticed that whenever I edit an editable email section in my template using the editor, <p><br /></p> is added at the bottom of my HTML. For example, if I put in:

<table class="one-column" style="background-color: #ffffff;" width="100%" bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0">

      <tr>

         <td style="text-align: center;">

            <table style="border-spacing: 0;" width="100%" border="0" cellpadding="0" cellspacing="0">

                  <tr>

                     <td class="text" style="font-family: Helvetica, 'Helvetica Neue', Geneva, Verdana, Arial, Tahoma, sans-serif; color: #333333; ;font-size: 14px; mso-line-height-rule: exactly; line-height: 19px; text-align: left; padding: 25px 15px 15px 15px;"><span style="font-size: 16px; font-weight: 600;">Do you have the real-time visibility you need to deliver the best quality products to your customers?</span><br />Frameworks and tooling around agile and DevOps have evolved to help, but value streams still go dark during the last mile of software delivery as ideas get converted into digital bytes. As we continue to scale agile across our enterprises, the ability to manage value streams from idea to end-user is becoming a critical requirement.</td>

                  </tr>

              </table>

         </td>

      </tr>

</table>

it gets changed to:

<table class="one-column" style="background-color: #ffffff;" width="100%" bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0">

      <tr>

         <td style="text-align: center;">

            <table style="border-spacing: 0;" width="100%" border="0" cellpadding="0" cellspacing="0">

                  <tr>

<td class="text" style="font-family: Helvetica, 'Helvetica Neue', Geneva, Verdana, Arial, Tahoma, sans-serif; color: #333333; ;font-size: 14px; mso-line-height-rule: exactly; line-height: 19px; text-align: left; padding: 25px 15px 15px 15px;"><span style="font-size: 16px; font-weight: 600;">Do you have the real-time visibility you need to deliver the best quality products to your customers?</span><br />Frameworks and tooling around agile and DevOps have evolved to help, but value streams still go dark during the last mile of software delivery as ideas get converted into digital bytes. As we continue to scale agile across our enterprises, the ability to manage value streams from idea to end-user is becoming a critical requirement.</td>

                  </tr>

              </table>

         </td>

      </tr>

</table>

<p><br /></p>

This added HTML is causing unwanted gaps in the email design.  Has anyone else experienced this, and is there a way to avoid it?

I've attached my email template.

Thanks in advance for any help.

Evan

1 ACCEPTED SOLUTION

Accepted Solutions

Re: White space being added to email sections

Likely that your editor settings is set to add a <p> when none exists in an email editable zone.

Go to admin->email->Edit Editor Settings. The dialog is as is:

pastedImage_0.png

Set the email/snippet to "None".

Be aware this has some drawbacks though (see some of Justin Cooperman  comments in this Thread New Text Editor is **** ). BTW, Justin, are your concerns still true with the new release ahead?

-Greg

View solution in original post

5 REPLIES 5

Re: White space being added to email sections

Likely that your editor settings is set to add a <p> when none exists in an email editable zone.

Go to admin->email->Edit Editor Settings. The dialog is as is:

pastedImage_0.png

Set the email/snippet to "None".

Be aware this has some drawbacks though (see some of Justin Cooperman  comments in this Thread New Text Editor is **** ). BTW, Justin, are your concerns still true with the new release ahead?

-Greg

View solution in original post

Re: White space being added to email sections

Yes, nothing changes about the text editor with the release of the Email Editor. Customers can control what the "root block" is for their text as Greg references above. It's totally up to you to decide what is best. Some templates may expect a <p>, some may expect nothing. It's possible to code the template to handle either.

Anonymous
Not applicable

Re: White space being added to email sections

Thanks, Greg - it was indeed the case that <p> was set as the root block element.  I never even knew those settings existed!

Re: White space being added to email sections

You are welcome

Re: White space being added to email sections

I put in empty div tags in the template (I've bolded the addition below)

  1. <td class="text" style="font-family: Helvetica, 'Helvetica Neue', Geneva, Verdana, Arial, Tahoma, sans-serif; color: #333333; ;font-size: 14px; mso-line-height-rule: exactly; line-height: 19px; text-align: left; padding: 25px 15px 15px 15px;"><span style="font-size: 16px; font-weight: 600;"><div>Do you have the real-time visibility you need to deliver the best quality products to your customers?</span><br />Frameworks and tooling around agile and DevOps have evolved to help, but value streams still go dark during the last mile of software delivery as ideas get converted into digital bytes. As we continue to scale agile across our enterprises, the ability to manage value streams from idea to end-user is becoming a critical requirement.</div></td>