Closed Bug 1823587 Opened 2 years ago Closed 2 years ago

Line feeds not displayed in plain text emails.

Categories

(MailNews Core :: Composition, defect)

Thunderbird 112
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: steve, Unassigned)

Details

(Whiteboard: [snnot3p][addon])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

Created an email in one account setting Options>sending format>only plain.
Sent email to another account.

Example email body.

some text

and more
and more

Actual results:

When received email was opened the text was displayed with missing line feeds after lines of text but displayed as a space.

some text

and more and more

Expected results:

The line feeds should be displayed/honoured as entered.

Viewing the source with Crl-u shows, for both the sent and received emails;

some text

and more
and more

Also just noticed, when I view the email in the sent folder it shows as

some text

and more and more
Whiteboard: [Supernova]

Did you compose it using the html editor, or the plain text editor?
(Should be unrelated to Supernova)

Whiteboard: [Supernova]

I clicked new message then went to Options>sending format>only plain text and composed the email. I am not sure which editor this is.

Referring back to comment 1, 2 views of the message are shown.
The top view is as typed and as shown with ctl-u.
The bottom view is as seen in the inbox and in the sent mail folder.

I saved the message (right click, save as) and then opened the message from the file menu. It shows as in the top view, comment 1.
The file contains 0D0A line termination on all lines.

I have message synchronising deselected in account settings, the accounts are IMAP to gmail

If I highlight and copy the text from the sent mail as it shows in the lower view, and paste it into a hex editor it shows
73 6F 6D 65 20 74 65 78 74 0A 0A 61 6E 64 20 6D 6F 72 65 20 61 6E 64 20 6D 6F 72 65 so 0A0A between "some text" and "and more and more"

If you see formatting controls (bold, italic etc) you're using the html editor.

In that case I am using the HTML editor but sending as plain text.
If I go into the received mail via my gmail account the text in hex copies as
73 6F 6D 65 20 74 65 78 74 0A 0A 61 6E 64 20 6D 6F 72 65 0A 61 6E 64 20 6D 6F 72 65

How do I compose with the plain text editor?

Hold shift when clicking Write.

I get the same result, enter text as per top sample comment 1, received message displayed as per bottom sample.
I will construct some messages and send with mailx to see if it is an issue with rendering.

There is definitely an issue in the rendering of the emails sent in plain text when viewed in TB. When clicking on the email it flashes the correct format and then reverts to an incorrect format.
Magnus, can I send to you 2 emails direct to compare in TB to see if you can verify.

Sure, go ahead. Please reference this bug number in the subject.

Sent 3 emails. Subjects as below.
Bug 1823587 test = A single blank line between first and second lines of text.

00000000  73 6f 6d 65 20 74 65 78  74 20 31 78 0a 0a 61 6e  |some text 1x..an|
00000010  64 20 6d 6f 72 65 0a 61  6e 64 20 6d 6f 72 65 0a  |d more.and more.|
00000020  0a                                                |.|

Bug 1823587 test0 = as above but no trailing 0a

Bug 1823587 test2 = as per test but with 2 blank lines between the first and second lines of text.

00000000  73 6f 6d 65 20 74 65 78  74 20 32 78 0a 0a 0a 61  |some text 2x...a|
00000010  6e 64 20 6d 6f 72 65 0a  61 6e 64 20 6d 6f 72 65  |nd more.and more|
00000020  0a                                                |.|

When I view in TB the spacing is briefly shown correctly then reverts to the same space between first and second lines of text

It looks all correct to me. Did you try with Help | Troubleshoot mode?

Image showing 3 emails when not in troubleshoot mode.

In troubleshoot mode it works fine, notice above the spacing is consistent between the top line of text and the next line of text.
This is with view as plain text and original HTML. The spacing here is about 3 lines, it should be 1 or 2 (the 2x)

Just thought to try another machine, this issue does not show on the other machine, same OS, same profile.
Could it be graphics card/system related.

In troubleshoot mode it works fine

It is due to some add-on or userChrome.css fix then.

Well I feel like an idiot now. I don't use plugins normally and I forgot I installed one during the smoke testing and had forgotten to remove it.
Working normally with the addon removed.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID

Steve, which add-on caused the problem?

Component: Untriaged → Composition
Product: Thunderbird → MailNews Core
Whiteboard: [addon:?? ][snnot]

One that could probably be an obvious one to cause this issue, I went looking for a compatible add-on to test the beta and found Render Markdown Messages. Rob's one wanted more permissions than I liked to grant.

Whiteboard: [addon:?? ][snnot] → [snnot3p][addon]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: