Closed Bug 227323 Opened 21 years ago Closed 21 years ago

Incorrect line breaks

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 125928

People

(Reporter: asaph, Assigned: sspitzer)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007

I like to insert my own line breaks in messages instead of 
having mozilla line wrap for me. So in the preferences box
in "Mail and News -> Composition" I selected wrap plain
text messages at 0 chars. 
Now I will occasionally get incorrect line-breaks in my mail.

I will type some mail in the composition pane, press "enter" where
I want line-breaks and then send the mail (and BCC myself). When the 
BCC arrives, the line breaks are sometimes missing and I get really
long lines. 



Reproducible: Always

Steps to Reproduce:
1. Compose plain-text mail. I wrote the following text in Emacs and pasted it
into the mozilla composition Window:
012345678 
012345678

012345678 012345678 
012345678 012345678

012345678 012345678 012345678
012345678 012345678 012345678

012345678 012345678 012345678 012345678
012345678 012345678 012345678 012345678

012345678 012345678 012345678 012345678 012345678
012345678 012345678 012345678 012345678 012345678

012345678 012345678 012345678 012345678 012345678 012345678
012345678 012345678 012345678 012345678 012345678 012345678

2. Send the mail to myself. Recall I have line-wrap set to 0.

3. Read mail (from an IMAP server)

Actual Results:  
This is what I got - the line breaks are messed up.


012345678 012345678

012345678 012345678 012345678 012345678

012345678 012345678 012345678
012345678 012345678 012345678

012345678 012345678 012345678 012345678
012345678 012345678 012345678 012345678

012345678 012345678 012345678 012345678 012345678
012345678 012345678 012345678 012345678 012345678

012345678 012345678 012345678 012345678 012345678 012345678
012345678 012345678 012345678 012345678 012345678 012345678


Expected Results:  
012345678 
012345678

012345678 012345678 
012345678 012345678

012345678 012345678 012345678
012345678 012345678 012345678

012345678 012345678 012345678 012345678
012345678 012345678 012345678 012345678

012345678 012345678 012345678 012345678 012345678
012345678 012345678 012345678 012345678 012345678

012345678 012345678 012345678 012345678 012345678 012345678
012345678 012345678 012345678 012345678 012345678 012345678


If I access the same mail message from my Unix box
using "mutt" to /var/spool/mail it looks fine, so the problem
I think is in displaying the mail, not sending it.

My guess is that the mozilla mail display window will take lines of the
form:
xxx yyy zzzz<space><cr>
www aaa bbb

and display them as:
xxx yyy zzzz www aaa bbb

So it turns <space><cr> into just <space>.

Perhaps this is considered a feature? I think it's a bug.
It is in fact considered a feature.  Did you compose that email using the HTML 
composer, or the plain-text composer?  I assume the former; see bug 125928, 
which this is probably a dupe of.  The composer should strip that trailing space 
when converting the message to plain text.

When the plain-text email is described as format=flowed (which it is by default 
in Mozilla), the space-CR indicates a 'soft break' which allows the text to 
reflow like HTML text.

See bug 168420 for information about f=f, including the informative FAQ attached 
to that bug.
No response from reporter, duping to likely candidate.

*** This bug has been marked as a duplicate of 125928 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.