Open Bug 1120825 Opened 10 years ago Updated 2 years ago

Font name with spaces is split by line breaks in HTML message source and does not render correctly

Categories

(MailNews Core :: Composition, defect)

x86_64
Windows 7
defect

Tracking

(Not tracked)

REOPENED

People

(Reporter: peter, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Build ID: 20141126041045 Steps to reproduce: Compose a message using a font name that has a space in it such as "Trebuchet MS". Drag and drop a section of text from the end of a sentence into the middle (I think this is necessary to trigger the bug). Actual results: Generated HTML splits the line at the space and therefore does not render correctly. For example below, the phrase ", out of courtesy," was dragged from the end of the sentence and dropped after "waiting". <font face=3D"Trebuchet MS">I was waiting</font><font face=3D"Trebuch= et MS">, out of courtesy,</font><font face=3D"Trebuchet MS"> for Arlen= e to give the go-ahead. She is probably bogged down with playing catch-up on her emails after her holidays. I'm sure she won't object to the change, so if you are in a hurry for it, I can give her a call to check.<br> <br> </font> Expected results: Do not generate a line break and spaces in the middle of the font name. In fact the font tags surrounding the dragged text are not required, but that is probably harder to detect and avoid. In the example above, the HTML should be <font face=3D"Trebuchet MS">I was waiting</font><font face=3D"Trebuch= et MS">, out of courtesy,</font><font face=3D"Trebuchet MS"> for Arlen= e to give the go-ahead. She is probably bogged down with playing catch-up on her emails after her holidays. I'm sure she won't object to the change, so if you are in a hurry for it, I can give her a call to check.<br> <br> </font>
Somewhat reminiscent of Bug 650206... I thought there was another bug about long/wrong/messed font attributes but I can't find it. Thanks Peter for reporting this. Yeah, such things are possible to occur. Also hard to fix as editor is somewhat orphaned.
See Also: → 650206
Summary: Font name is split in HTML message and does not render correctly → Font name with spaces is split by line breaks in HTML message source and does not render correctly
Oops, just noticed some "="s were added in the middle of the font name and the word "Arlene". Don't know where they came from. When you say "orphaned", does that mean no one wants to work on it anymore? Is it written in JavaScript? I guess the work-around is not to use fonts with spaces in the name, or use cut-paste instead of drag-drop.
Bad wrapping is due to the M-C serialiser. We should create a meta bug to collect all these problems.
Component: Untriaged → Composition
Product: Thunderbird → MailNews Core
Version: 24 Branch → 24

Abandoning Thunderbird for lack of support.

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

Feel free to use the "never email me about this bug" at the bottom, just above "save changes"

Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: INVALID → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.