Closed Bug 236701 Opened 21 years ago Closed 21 years ago

When saving a plaintext message as draft, mozilla saves "automatic end line" hard wraps

Categories

(MailNews Core :: Composition, defect)

x86
Windows 2000
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 155622

People

(Reporter: dentament, Assigned: sspitzer)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 When saving a plaintext message as draft, mozilla adds hard wraps according to "'edit' > 'preferences' > 'mail & newsgroups' > 'composition' > 'wrap plain text messages at'" setting. It doesn't matter if you have format=flowed on or off. As a result, when you will open the saved draft for further editing, you will have problems... like this: let's say you have 'wrap plain text messages at' = 20 (just to make an example) you do 'compose' a new message you write: this is a very annoying problem Correctly, until you stay in compose window, mozilla wraps "this is a very annoying problem" 'on screen only', this way: this is a very annoying problem ...so, if you delete "this" from the first line, "annoying" correctly "comes up" from the second to the first line, this way: is a very annoying problem But if you save this message as draft, and later you open it again for further editing, when you delete (for example) "is a very " from the first line, "problem" doesn't 'come up' from the second to the first line as it should, because when "saving as draft" mozilla has saved an hard wrap after "annoying". It shouldn't work this way: when saving a message as draft (AND when saving a message with the 'send later' feature, AND EVEN when saving a sent message in the 'sent' folder), mozilla should save only the hard wraps a user manually entered, and rewrap the message "on screen only" according to "'wrap plain text messages at'" setting when editing/displaying the 'sent'/'saved as draft'/'to send later' message; in other words, mozilla should add the "automatic hard wraps" (the ones it has to add according to "wrap plain text messages at" setting) only when actually sending a message and ONLY in the copy it is actually sending out - never locally. I'll rate this as a 'major' bug because I think it is: i think i'm not the only one who often has to write long messages and sometimes has to save theme as draft in order to further edit them later - having to manually adjust all the lines in a paragraph after the one from which you deleted some words, is really a big pain. Reproducible: Always Steps to Reproduce: 1. you have "'edit' > 'preferences' > 'mail & newsgroups' > 'composition' > 'wrap plain text messages at'" = x (where x>0) 1. compose a new plaintext message 2. type a line longer than x 3. save this message as a draft 4. open it again Actual Results: now if you delete something 'long enough' from the first line, mozilla doesn't correctly 'reflow' the message (bringing some words from the secondo line to the first line) since when 'saving as draft' it saved an hard wrap at the 'end' of the first line. Expected Results: it should have reflowed the message correctly :)
*** This bug has been marked as a duplicate of 155622 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Depends on: 268035
No longer depends on: 268035
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.