Closed Bug 501964 Opened 15 years ago Closed 15 years ago

Clipboard loses formatting information

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 116083

People

(Reporter: neil.walker, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)

When you copy information from web-pages it loses basic formatting information such as carriage returns.

For example,
http://www.allegro.cc/forums/thread/600774

If you copy the text from the 'code' window visible on this page then paste it, you lose all the carriage returns. Any other browser keeps this information.

There are many instances I noted in the help but all related to other areas I believe.

This is in FF3.5 as well as every other version of Firefox.


Reproducible: Always

Steps to Reproduce:
1.Visit site
2.Copy the code window text to the clipboard
3.Paste text
Actual Results:  
Formatting such as carriage returns are lost.


Kept the carriage returns
Note, this only happens under certain div block styles, as noted in the example page.
I've ran futher tests and it seems to occur with (as the example above) when you use:
white-space:pre;

with span elements
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.