Closed Bug 406460 Opened 18 years ago Closed 16 years ago

When copying from inside of a <pre></pre> tag, the content's newline characters are stripped.

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: hayson1991, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 I have had problems with several different <pre></pre> tag contents, the new-line characters are stripped when I paste it into notepad. I don't think this should happen because it is a pre-tag. Reproducible: Always Steps to Reproduce: 1.Find a website that uses a pre-tag 2.Copy the content of it. 3.Paste in Notepad Actual Results: The text in the Notepad does not include new-line characters that the pre-tag contents included. Expected Results: The new-line characters should be included.
Is this a regression? The last paragraph of bug 116083 comment 0 says whitespace preservation works for <pre> (but not CSS "white-space: pre").
Hayson, non CSS works for me Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2b1pre) Gecko/20090928 Namoroka/3.6b1pre
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.