Closed
Bug 102819
Opened 23 years ago
Closed 22 years ago
Enter key at the end of line inserts two newlines
Categories
(Core :: DOM: Editor, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.1alpha
People
(Reporter: kazhik, Assigned: mozeditor)
References
Details
(Whiteboard: EDITORBASE+; fixinhand; need r=,sr=; patch in 83378 [adt2])
Attachments
(1 file, 5 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
Enter key at the end of line in the quoted text in plain text mode
inserts two newlines.
This bug is similar with bug 58960.
Build: 2001100203/Win2k
Updated•23 years ago
|
QA Contact: sheelar → esther
Updated•23 years ago
|
Target Milestone: --- → mozilla1.0.1
Comment 1•23 years ago
|
||
*spam* Moving these bugs target milestones back to Mozilla 1.0 as they're listed
in a tracking bug for fixes essential for 1.0
Keywords: mozilla1.0
Target Milestone: mozilla1.0.1 → mozilla1.0
Comment 3•23 years ago
|
||
As jjkarppi@cs.helsinki.fi pointed out, this is a dupe of bug 102842 -- or vice
versa, bug 102842 has more comments.
Bug 67391 is much more specific than this bug, but seems related.
pi
Comment 4•23 years ago
|
||
reassign to editor core
Assignee: ducarroz → kin
Component: Composition → Editor: Core
Keywords: mailtrack
Product: MailNews → Browser
QA Contact: esther → sujay
Marking as duplicate of 102842; please un-dup if you disagree.
*** This bug has been marked as a duplicate of 102842 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 7•23 years ago
|
||
bug 012842 was marked as FIXED, but I can reproduce this bug with
2002020611/Linux. Reopening.
I can reproduce the similar bug 58960.
Status: VERIFIED → REOPENED
OS: Windows 2000 → All
Resolution: DUPLICATE → ---
*** Bug 106225 has been marked as a duplicate of this bug. ***
Comment 10•23 years ago
|
||
it seems to act like bug #92686 was "fixed". If you hit Shift+Enter, the proper
behavior occurs. Enter seems to insert a paragraph break and Shift+Enter
inserts a line break. I think that Enter should always insert a line break when
in plain text mode.
Comment 11•23 years ago
|
||
I got it.
There is a silly mistake in nsHTMLEditor.cpp.
Try this patch.
Comment 12•23 years ago
|
||
Sorry, I mistook, too...
Try newer one.
Attachment #69852 -
Attachment is obsolete: true
Comment 13•23 years ago
|
||
I added one more fix of the same mistake on that file.
(Thanks, Kazuhiko.)
Updated•23 years ago
|
Attachment #69855 -
Attachment is obsolete: true
Comment 14•23 years ago
|
||
Comment on attachment 69902 [details] [diff] [review]
a patch with one more fix
The changes that do a straight replacement of eEditorPlaintextBit with
eEditorPlaintextMask should be done. But my guess is that this change in the
*logic* shouldn't be made:
- if (isShift && !(mFlags&eEditorPlaintextBit))
+ if (isShift || mFlags&eEditorPlaintextMask )
That change will prevent the HTML rules code from being triggered which handles
the splitting of <pre> and <span> containers that can be in Plaintext Mail
Compose replies.
Cc'ing jfrancis for confirmation.
Attachment #69902 -
Flags: needs-work+
Comment 15•23 years ago
|
||
Cc'ing jfrancis ... Joe see my previous comment. I'm thinking that the code in
question is specifically for HTML editors, ala, inserting <br>s in containers
like <li> without breaking or adding new new list items, so the logic is
correct.
Status: REOPENED → ASSIGNED
Comment 16•23 years ago
|
||
Okay. I'll modify my patch.
It seems, all we have to do is this:
When Enter key is hitted,
split <SPAN> and insert one BR only for plain text mail composition.
(Now, two BR will be inserted.)
I'll make some more efforts for this bug.
Comment 17•23 years ago
|
||
Attachment #69902 -
Attachment is obsolete: true
Reporter | ||
Comment 18•23 years ago
|
||
*** Bug 130233 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 19•23 years ago
|
||
Comment on attachment 73156 [details] [diff] [review]
a patch with replaces only
r=jfrancis
Attachment #73156 -
Flags: review+
Comment 20•23 years ago
|
||
*** Bug 123854 has been marked as a duplicate of this bug. ***
Comment 21•23 years ago
|
||
Comment on attachment 73156 [details] [diff] [review]
a patch with replaces only
sr=kin@netscape.com
So does this fix the reported problem? Or does this bug need to remain open
after this patch is checked in?
Attachment #73156 -
Flags: superreview+
Comment 22•23 years ago
|
||
This patch does not fix this bug.
(I have no solutions to fix it now.)
We need other works.
Please remain open.
Comment 23•23 years ago
|
||
Actualyy, this bug here is more general thant the summary suggests, compare bug
123854. It also happens when you press enter in the middle of a quoted line.
pi
Comment 24•23 years ago
|
||
Comment on attachment 73156 [details] [diff] [review]
a patch with replaces only
a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #73156 -
Flags: approval+
Updated•23 years ago
|
Keywords: mozilla1.0 → mozilla1.0+
Comment 25•23 years ago
|
||
Has this landed? It was approved 10 days ago.
Comment 26•23 years ago
|
||
I asked jfrancis to check-in it.
(I have no CVS account.)
But it has not been check-in yet.
I'll ask him again.
Comment 27•23 years ago
|
||
This is a true fix, I hope.
In detail, SplitNodeDeep (and CreateBR for inline node at line#1385) makes a
break.
So, we should not add an extra BR in Plaintext mode.
Assignee | ||
Comment 28•23 years ago
|
||
Comment on attachment 73156 [details] [diff] [review]
a patch with replaces only
btw, i checked in the approved patch. Marking obsolete...
Attachment #73156 -
Attachment is obsolete: true
Reporter | ||
Comment 29•23 years ago
|
||
*** Bug 124733 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 30•23 years ago
|
||
skamio's patch causes you not to get any blank line at all if you split a
plaintext mailcite in the middle of a line (instead fo at the end).
I am attaching a patch that I think will work (though I can't test it right now).
Assignee | ||
Comment 31•23 years ago
|
||
this patch detects when there is already a break before the split point when
splitting an inline mailcite. We only need to add a second br when there
wasn't a break at end of split cite.
Attachment #77587 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Whiteboard: EDITORBASE; fixinhand; need r=,sr=
Comment 32•23 years ago
|
||
Joe,
please make sure this patch is thoroughly tested before checking in..
also test other areas this might affect it.
thanks.
Assignee | ||
Comment 33•23 years ago
|
||
so kin found some probs with patch. I revised to address, but i'm not going to
post it because i realize now that there is a larger prob i have to solve. i'll
post a new patch when it's ready.
re sujay's comment: of course. i never land without testing. I was just
posting so that kin/akk/brade could help me test it out.
Assignee | ||
Comment 34•22 years ago
|
||
new patch in bug 83378.
Depends on: 83378
Whiteboard: EDITORBASE; fixinhand; need r=,sr= → EDITORBASE+; fixinhand; need r=,sr=
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Whiteboard: EDITORBASE+; fixinhand; need r=,sr= → EDITORBASE+; fixinhand; need r=,sr=; patch in 83378
Updated•22 years ago
|
Whiteboard: EDITORBASE+; fixinhand; need r=,sr=; patch in 83378 → EDITORBASE+; fixinhand; need r=,sr=; patch in 83378 [adt2]
Assignee | ||
Comment 36•22 years ago
|
||
83378 has landed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 22 years ago
Resolution: --- → FIXED
Comment 37•22 years ago
|
||
nsbeta1-. The fix is too risky for the 1.0 branch.
Comment 38•22 years ago
|
||
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1a+) Gecko/20020701
Now it WFM.
pi
Updated•22 years ago
|
QA Contact: sujay → sairuh
You need to log in
before you can comment on or make changes to this bug.
Description
•