foundation / inky

Convert a simple HTML syntax into tables compatible with Foundation for Emails.
http://foundation.zurb.com/emails
674 stars 108 forks source link

Spacer's   is being rendered on Apple Mail's preview #69

Closed joaocunha closed 7 years ago

joaocunha commented 7 years ago

The character &#xA0; present in <spacer>'s source is being rendered as a visible space on Apple Mail's preview but not on the actual message (tested on 9 and 10). Switching it to a regular &nbsp; seems to sort the issue. Any reason not to use &nbsp; instead?

pasted_image_16_11_16_19_40

The layout source code (full message dist code here):

 <body>
    <!-- <style> -->
    <table class="body">
      <tr>
        <td class="center" align="center" valign="top">
          <center>
            <spacer size="10"></spacer> <!-- ===== THE CULPRIT, RIGHT BEFORE THE MESSAGE'S BODY ===== -->
            {{> body}}
          </center>
        </td>
      </tr>
      ...
    </table>
    ...
</body>
joaocunha commented 7 years ago

I went ahead and PR'ed.

joaocunha commented 7 years ago

Ping @rafibomb :)

(it's a pretty tiny fix)