Closed Bug 1857161 Opened 2 years ago Closed 2 years ago

Too much line spacing for <br>-Tag in Reader Window

Categories

(Thunderbird :: Message Reader UI, defect)

Thunderbird 115
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: edv-service, Unassigned)

References

Details

Attachments

(1 file)

Steps to reproduce:

A client has an HTML-signature-file where she specifies the font and font-size for her lines in the signature and does line breaks with the <br>-tag.

Actual results:

In the Message Reader, the line breaks in the signature have a line height, as if she would have specified paragraphs instead of line breaks. This makes the signature take up half a page.
The signature is displayed correctly in the Message Compose Window.

Expected results:

The line breaks in the signature should be displayed with normal line height in the Message Reader.

Yes, the reporter of bug 1856112 also experienced extra spacing around <br> elements. In the end, they used <div> for linebreaks.

If it's not the same as bug 1856112 (bad html), please provide a the html which is "wrong".

Put

<div align="left"><br>
<font face="Arial" color="000000" size="3">Mit besten Grüßen</font><br>
<font face="Monotype Corsiva" color="0000FF" size="6">Robert Jahn</font><br>
<font face="Arial" color="0000FF" size="1">IBM-KEXI Mitgliederverwaltung</font><br>
<font face="Microsoft Sans Serif" color="000000" size="1"><a class="moz-txt-link-freetext" href="mailto:robert@kexi.at">mailto:robert@kexi.at</a></font><br>
<font face="Arial" color="FB0C44" size="1">Bitte Empfang bestätigen</font><br>

as HTML signature. Compare compose window to saved draft/sent message. The latter has more spacing.

I observed this when working on a solution for the reported of bug 1856112. There we switched to <div> to avoid the extra spacing.

Thank you for the hint, using a <div> for every line and any required spacing allowed me to build a working signature.

I still wouldn't mark this as resolved, because the client is super pissed about such changes in behavior coming surprisingly with updates. Also her old e-mails still look wrong. This makes it hard to advocate for Thunderbird.

I would suggest reverting to the old behavior, which would also make the Message Reader consistent with the Message Compose Window, the old (pre-115) Message Reader, the Windows File Preview and Mozilla Firefox.

Attached image 1857161.png

This is a comparison using this HTML, 102 above, 115 below:

<div align="left"><br>
<font size="3" face="Arial" color="000000">Mit besten Grüßen</font><br>
<font size="6" face="Monotype Corsiva" color="0000FF">Robert Jahn</font><br>
<font size="1" face="Arial" color="0000FF">IBM-KEXI Mitgliederverwaltung</font><br>
<font size="1" face="Microsoft Sans Serif" color="000000"><a
class="moz-txt-link-freetext" href="mailto:robert@kexi.at">mailto:robert@kexi.at</a></font><br>
<font size="1" face="Arial" color="FB0C44">Bitte Empfang bestätigen</font><br>
</div>

As you can see, the HTML is rendered with more spacing in the draft preview.

The same HTML displayed in Firefox shows the amount of spacing from TB 102, so something appears to be wrong in TB 115.

It's displayed the same in Firefox, IF you make it display in standards mode (<!DOCTYPE html at top). Before bug 1429491 emails were displayed in quirks mode.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
See Also: → 1429491
See Also: → 1857877
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: