Closed Bug 101632 Opened 23 years ago Closed 23 years ago

unwanted new-lines in plain text composer - can't join lines

Categories

(Core :: DOM: Editor, defect, P1)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.8

People

(Reporter: nelson, Assigned: mozeditor)

References

Details

(Whiteboard: EDITORBASE; will be hidden by 92331 fix)

Running build 2001091703
Read a large email message.
Reply to it with the plain text email composer, so that the original message
is quoted in-line with ">" characters in front. 
In the composer window, find a line of text that begins with ">".
Put the cursor in the middle of it somewhere and press the "enter" key.

The result is that the line is split, and TWO new lines are inserted.
The first new line is blank.  (This line is completely undesirable, IMO).
The second new line contains the text after the point where the cursor was
in the original line before you pressed enter.

Now, type a ">" as the first character of the new blank line, and then 
TRY to join that line with the line below it.  You cannot join these two
lines for some reason.  Any attempt to delete the end-of-lien deletes the 
first character on the next line.  Placing the cursor at the beginning of
the next line and typing backspace deletes the last character on the 
preceeding line but does not join the lines.  There doesn't appear to be
any way to join these lines.  Something about this blank makes it impossible
to join the next line to it, even if you put text there.

I finally figured out a workaround.  After pressing enter, immediately
press the "delete" key.  This deletes the special unjoinable blank line.
Then the next line behaves normally.
reassign to editor
Assignee: ducarroz → kin
Component: Composition → Editor: Core
Keywords: mailtrack
Product: MailNews → Browser
QA Contact: sheelar → sujay
--> jfrancis
Assignee: kin → jfrancis
You are just splitting a pre block (used for plaintext mailquotes).  The blank 
line that is not editable is vertical margin.  The delete key workaround is just 
joining the split pre back together again.  If you type on it you will see that 
you get different wrapping behavior because you are inside the mailquote.

This in essence is a wontfix, but when I finish 92331 this problem will be 
masked, because we will use spans instead of pre's for plaintext mailquotes.
Status: NEW → ASSIGNED
Depends on: 92331
Whiteboard: EDITORBASE; will be hidden by 92331 fix
Target Milestone: --- → mozilla0.9.5
Target Milestone: mozilla0.9.5 → mozilla0.9.6
097
Target Milestone: mozilla0.9.6 → mozilla0.9.7
098
Target Milestone: mozilla0.9.7 → mozilla0.9.8
Priority: -- → P1
Problem seen in Build ID: 2001112014 on OpenVMS.
"fixed" by recent landing of 92331 patch
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Nelson, does this work for you now?
using trunk build from 2003043008 on win2K

verified fix. selected reply, set caret in the middle of a line, hit enter, no
blank lines were inserted, typed some text, hit delete and the line below moved up.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.