Closed Bug 80835 Opened 23 years ago Closed 23 years ago

some spaces in edit box don't get copied

Categories

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

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 69024
mozilla0.9.3

People

(Reporter: dcary, Assigned: mozeditor)

References

()

Details

(Whiteboard: [ws])

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9) Gecko/20010505
BuildID:    2001050515

When I cut several lines of text from the edit box and paste them somewhere
else, they become left-justified. All the nice spaces and tabs at the left edge
are lost.

Reproducible: Always
Steps to Reproduce:
1. Open http://rdrop.com/~cary/html/feedback.html
2. Click the cursor into the big "comments" edit box
3. Type a few spaces, a few letters, ENTER, a few more spaces, a few more
letters, a few spaces, a few more letters, ENTER.
4. Cut some complete lines, and paste them back in ( CTRL+a, CTRL+x, CTRL+v ).

Actual Results:  All the letters are pasted back into the box. But most of the
space characters have disappeared.
Each line is now left-justified, i.e., there is no longer any space characters
to the left of each line.
Any gaps of 2 or more space characters between words has suddenly become only 1
space between those words.

Expected Results:  Mozilla should have pasted back exactly what was cut out.
If a line started with exactly 9 spaces, then after cutting and pasting that
line elsewhere, it should still start with exactly 9 spaces. (IMHO).

The problem is in the "cut" or "copy" step. Pasting that data into other
applications shows the spaces are already gone.
Cutting lines of text with lots of spaces from other applications
and pasting into Mozilla edit boxes works fine.

Maybe related to bug 76545 ?

Tab characters are also eaten.

This is really annoying at
  http://piclist.org/techref/microchip/pages.htm?edit
when trying to edit carefully-indented source code.
I see this  behavior on w98 build 2001051404
Status: UNCONFIRMED → NEW
Ever confirmed: true
reassigning
Assignee: morse → rods
Component: Form Manager → HTML Form Controls
QA Contact: tpreston → vladimire
sounds like an editor bug...maybe a duplicate
-->jfrancis
Assignee: rods → jfrancis
Component: HTML Form Controls → Editor
setting to 9.2
Priority: -- → P3
Target Milestone: --- → mozilla0.9.2
Joe, is this one of those bugs where we need input from layout about significant 
whitespace?
Keywords: correctness
Whiteboard: [ws]
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Dup of "Copy text from a textarea drops starting spaces"

*** This bug has been marked as a duplicate of 69024 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
verifying duplicate
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.