Mailspring: Bug: Lost New Lines after being sent

Created on 26 Mar 2020  路  4Comments  路  Source: Foundry376/Mailspring

Describe the bug
In the editor, empty lines with a space character at the beginning will be gone when sending the email.

To Reproduce
Steps to reproduce the behavior:

  1. In the editor type (note the space character in the second line, between 1. and 2.):
1.test new line with a space character:

2.test new line without a whitespace:

3.test

image

  1. Send the email, and this is what I get in the email viewer:
    image

Setup: (please complete the following information):

  • OS: macOS
  • OS Version 10.15.4 (19E266)
  • Mailspring Version: Version 1.7.4 (1.7.4)

Additional context
Probably the same as issue #1395

bug done-pending-release

All 4 comments

Hey! Thanks for reporting this - I've been able to reproduce the problem thanks to your instructions. It looks like the first newline (with the space) is translated into a <div> </div> in the email, and the second without a space is a <br>.

It looks like if we substitute that space for a character that enforces a line height, like &nbsp;, it works. Will see what Gmail and other editors do and try to fix this.

Hey! I was able to fix this and it'll be shipped in the 1.7.5 release tomorrow. It turns out I did a bunch of work to match Gmail and two specific cases were still not correct:

  • Case where a line contains exactly one blank space and no other text
  • Case where a line contains one blank space and then text (the blank space is lost)

Cheers!

Hey folks, thanks for reporting this. Happy to say this has been resolved in 1.7.6 which shipped this afternoon. 馃殌 The app should auto-update, but if it doesn't you can also grab the new release from GitHub's Releases tab or from https://getmailspring.com/download. Thanks for your patience and help tracking this down, enjoy the update!

馃帀 Thanks for all the work you've put into this amazing app!!

Hey folks, thanks for reporting this. Happy to say this has been resolved in 1.7.6 which shipped this afternoon. 馃殌 The app should auto-update, but if it doesn't you can also grab the new release from GitHub's Releases tab or from https://getmailspring.com/download. Thanks for your patience and help tracking this down, enjoy the update!

Was this page helpful?
0 / 5 - 0 ratings