Closed Bug 215131 Opened 22 years ago Closed 22 years ago

Plain text wrapping is not done properly according to wraplength setting

Categories

(MailNews Core :: Composition, defect)

x86
Windows 2000
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 223276

People

(Reporter: etirta, Assigned: sspitzer)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) When wrapping a plain text message, a line with more characters then the wraplength setting is not truncated if there is no space in that line. Also eventhough the wrapping in the display is done correctly in the exact no. characters according to the wraplength setting, the actual wrapping is off by 4 more characters. If the setting is 74 characters then it will actually wrap on 78 characters. I tried with the setting of 70 characters and it wraps on 74 characters. Reproducible: Always Steps to Reproduce: 1. Set the composition to wrap the plain text at 74 characters. user_pref("mailnews.wraplength", 74); 2. Turn off format=flowed mail sending. user_pref("mailnews.send_plaintext_flowed", false); 3. Compose a new plain text message. 4. Write these lines down. 12345678901234567890123456789012345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567890123456789012345678901234 6 12345678901234567890123456789012345678901234567890123456789012345678901234 67 12345678901234567890123456789012345678901234567890123456789012345678901234 678 12345678901234567890123456789012345678901234567890123456789012345678901234 6789 5. In the composition display, it will look like this. 12345678901234567890123456789012345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567890123456789012345678901234 6 12345678901234567890123456789012345678901234567890123456789012345678901234 67 12345678901234567890123456789012345678901234567890123456789012345678901234 678 12345678901234567890123456789012345678901234567890123456789012345678901234 6789 6. Save the mail to Draft of Send it to your self. 7. Open the mail and press Ctrl+U to see the message source. And this is what it will look like. 12345678901234567890123456789012345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567890123456789012345678901234 6 12345678901234567890123456789012345678901234567890123456789012345678901234 67 12345678901234567890123456789012345678901234567890123456789012345678901234 678 12345678901234567890123456789012345678901234567890123456789012345678901234 6789 Actual Results: The plain text line with length more than 74 characters without any space is not wrapped / truncated. The plain text line with space is actually truncated at 78 characters. Expected Results: The plain text line that contain more characters that wraplength setting without space should be truncated. The plain text line with space should be wrapped at the exact no. of characters as specified by wraplength setting.
*** This bug has been marked as a duplicate of 212977 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Sorry, wrong bug to dupe
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
This is the duplicate I meant. *** This bug has been marked as a duplicate of 223276 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → DUPLICATE
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.