Closed
Bug 76888
Opened 23 years ago
Closed 23 years ago
line wrapping problems in plain text mail compose
Categories
(MailNews Core :: Composition, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9
People
(Reporter: blizzard, Assigned: mozeditor)
References
Details
(Whiteboard: fix in hand / want for mozilla 0.9 -eta 2/26)
Attachments
(2 files)
6.12 KB,
patch
|
Details | Diff | Splinter Review | |
11.54 KB,
patch
|
Details | Diff | Splinter Review |
Build is on Apr 20, 2001. Sometimes when composing a mail message with the plain text editor there are some serious line wrapping problems. It always happens when I'm typing a line and I hit delete to delete the character at the end of the line that I'm typing on. What happens is that the line is suddenly indented one or two characters and whitespace in between the current sentence and the previous is eaten. If you back the cursor up to the beginning of the line before the indentation and try to backspace over them to correct them it thinks that it's at the beginning of the line and it actually backs up to the previous line but the line itself is still indented one character. I still don't have a 100% reproducable test case yet.
Reporter | ||
Comment 1•23 years ago
|
||
OK, I have a reproducable test case for this! Shaver has reproduced it so it's not just me. Please note that neither of us have signature files which may be signifigant. Steps to reproduce: o Bring up a mail compose window o Click on the content area to bring focus to it o Type the following. Special keys are in brackets. foo. <return> <return> --Chris <up arrow> <up arrow> <space> hh <backspace>
Assignee | ||
Comment 3•23 years ago
|
||
arg! ancient crusty code must die. i have a wonderful fix for this: delete everything inside of nsTextEditRules::DidDeleteSelection().
Severity: normal → critical
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: fix in hand
Target Milestone: --- → mozilla0.9.1
Reporter | ||
Comment 4•23 years ago
|
||
Nope, that didn't fix it.
Assignee | ||
Comment 5•23 years ago
|
||
it does for me. But i have other patches in the tree I was testing with. However, with these other patches, I can duplicate the bug, and then see it fixed when I remove DidDeleteSelection code. Let's see what happens later on after ws work lands (65557). Then we will all be on same playing field.
Comment 6•23 years ago
|
||
God, how I wish we could fix this for 0.9. Sending plaintext mail _sucks_ without this fix.
Reporter | ||
Comment 7•23 years ago
|
||
Yeah, I want this for 0.9 too. Sending mail does suck right now with this. It's biting me all over the place and it looks just plain awful. ( No pun intended. )
I was able to reproduce Christopher Blizzard's test case on build 2001042012. This is a problem on all operating systems.
Assignee | ||
Comment 9•23 years ago
|
||
Assignee | ||
Comment 10•23 years ago
|
||
the attached diffs fix the testcase. shaver/blizzard please give it a go. i invite interested parties to lobby for 0.9 landing if they like the results. adding mozilla0.9 keyword
Keywords: mozilla0.9
Reporter | ||
Comment 11•23 years ago
|
||
Yeah, they fix the test case here too. Let me do some testing through the day to make sure I don't see it again and I don't see any other nasty regressions...
Whiteboard: fix in hand → fix in hand / want for mozilla 0.9
Assignee | ||
Comment 12•23 years ago
|
||
assigning to me; cc'ing kathy
Assignee: ducarroz → jfrancis
Status: ASSIGNED → NEW
Comment 13•23 years ago
|
||
want want want!
Reporter | ||
Comment 14•23 years ago
|
||
OK, I haven't seen any problems in plain text all day. Feels baked to me. Is this ready for r/sr?
Assignee | ||
Comment 15•23 years ago
|
||
I'm ready for r/sr/approval assuming none of my testers have any worries.
Status: NEW → ASSIGNED
Assignee | ||
Comment 16•23 years ago
|
||
i snag has been found. Taking out the code that did adjacent textnode merging has exposed two problems in textareas/textfields: 1) layout will not properly wrap text that is split across text nodes (it treats the node boundary as a wrap point) 2) the editor chokes on zero-length text nodes in some cases I believe I can write a nsTextEditRules::WillDeleteSelection() function to hide the first problem and fix the second. i'll update the patch when ready.
Whiteboard: fix in hand / want for mozilla 0.9 → partial fix in hand / want for mozilla 0.9
Assignee | ||
Comment 17•23 years ago
|
||
*** Bug 77200 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 18•23 years ago
|
||
improved (?) patch. I now scan around for empty text nodes and squish them.
Assignee | ||
Comment 19•23 years ago
|
||
Comment 20•23 years ago
|
||
bringing TM back to 0.9 to keep this in line for review/approval, etc.
Target Milestone: mozilla0.9.1 → mozilla0.9
Updated•23 years ago
|
Whiteboard: partial fix in hand / want for mozilla 0.9 → partial fix in hand / want for mozilla 0.9 -eta 2/24
Comment 21•23 years ago
|
||
>1) layout will not properly wrap text that is split across text nodes (it
> treats the node boundary as a wrap point)
Is there a layout bug on file for this? If so, please cite it here; if not,
please file it.
/be
Assignee | ||
Comment 22•23 years ago
|
||
testing looks good so far. >1) layout will not properly wrap text that is split across text nodes (it > treats the node boundary as a wrap point) is bug http://bugzilla.mozilla.org/show_bug.cgi?id=77394 It requires empty text nodes around to happen.
Whiteboard: partial fix in hand / want for mozilla 0.9 -eta 2/24 → fix in hand / want for mozilla 0.9 -eta 2/24
Assignee | ||
Comment 23•23 years ago
|
||
testing looks good. I'm ready to land as soon as reviews are in.
Whiteboard: fix in hand / want for mozilla 0.9 -eta 2/24 → fix in hand / NEED REVIEWS / want for mozilla 0.9 -eta 2/24
Comment 24•23 years ago
|
||
r=sfraser
Comment 25•23 years ago
|
||
sr=kin@netscape.com
Assignee | ||
Comment 26•23 years ago
|
||
ok, my understanding is that I land on trunk & 0.9 branch independently right after branch is cut (and after hyatts checkins clear, which should be before branch is cut). If anyone objects to that plan you better speak up.
Whiteboard: fix in hand / NEED REVIEWS / want for mozilla 0.9 -eta 2/24 → fix in hand / want for mozilla 0.9 -eta 2/26
Reporter | ||
Comment 27•23 years ago
|
||
The 0.9 branch has been cut so you should be OK to check in there. I have oone checked out already. Let me know if you want me to check this in for you.
Assignee | ||
Comment 28•23 years ago
|
||
i have landed this on branch. trunk landing will occur if we open the trunk before 5pm today.
Assignee | ||
Comment 29•23 years ago
|
||
landed on trunk
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 30•23 years ago
|
||
*** Bug 77025 has been marked as a duplicate of this bug. ***
Comment 31•23 years ago
|
||
Using trunk build 2002-03-1 on winxp 20020304 on linux on mac OS 9.1 20020304, and the original scenario this is fixed. Verified
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•