Topic
  • 2 replies
  • Latest Post - ‏2018-11-26T07:55:51Z by johnsmiths
kasim.ali
kasim.ali
6 Posts

Pinned topic WCS 8 - Line Breaks being added to Marketing Emails

‏2018-06-21T11:47:43Z |

So I created a registration template email and have gone to test it.

When the email sends, the code changes and line breaks are added after every line.

An example bit of my code is as followed:

"

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="left" style="font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif; color: #000000; font-size: 14px;line-height:22px;"><strong>From&nbsp;the account section you can:</strong>
<ul>
<li>Update your personal info.</li>
<li>Change account password.</li>
<li>Add or edit stored addresses.</li>
<li>Store multiple payment methods for a quicker checkout.</li>
<li>Track your order history and the progress of any outstanding orders.</li>
</ul>
</td>
</tr>
</tbody>
</table>"

 

While the edited code looks like this:

"

<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%">
<br>
<tbody>
<br>
<tr>
<br>
<td align=3D"left" style=3D"font-family: 'Gill Sans', 'Gill Sans MT', Calibri, =
sans-serif; color: #000000; font-size: 14px;line-height:22px;">
<strong>From&nbsp;the account section you can:</strong><br>
<ul>
<br>
<li>Update your personal info.<br></li>
<li>Change account password.<br></li>
<li>Add or edit stored addresses.<br></li>
<li>Store multiple payment methods for a quicker checkout.<br></li>
<li>Track your order history and the progress of any outstanding order=
s.<br>
</li>
</ul>
<br>
</td>
<br>
</tr>
<br>
</tbody>
<br>
</table>"

 

Any help would be greatly appreciated.

  • kasim.ali
    kasim.ali
    6 Posts
    ACCEPTED ANSWER

    Re: WCS 8 - Line Breaks being added to Marketing Emails

    ‏2018-06-21T13:09:24Z  

    Right so I found a fix.

    Having all your html code on 1 line fixes the issue, I think Websphere Commerce sees every line and adds a line break automatically.

  • kasim.ali
    kasim.ali
    6 Posts

    Re: WCS 8 - Line Breaks being added to Marketing Emails

    ‏2018-06-21T13:09:24Z  

    Right so I found a fix.

    Having all your html code on 1 line fixes the issue, I think Websphere Commerce sees every line and adds a line break automatically.

  • johnsmiths
    johnsmiths
    2 Posts

    Re: WCS 8 - Line Breaks being added to Marketing Emails

    ‏2018-11-26T07:55:51Z  
    • kasim.ali
    • ‏2018-06-21T13:09:24Z

    Right so I found a fix.

    Having all your html code on 1 line fixes the issue, I think Websphere Commerce sees every line and adds a line break automatically.

    Hi Kasim,

     

    How you fixe Line Breaks being issue?