Closed
Bug 441648
Opened 17 years ago
Closed 16 years ago
white-space: pre-wrap selection to copy buffer ignores newlines
Categories
(Core :: DOM: Serializers, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 116083
People
(Reporter: jimandjanetb, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
ff3 now renders "white-space: pre-wrap;" styling correctly (according to css 2.1)
but any lines of text selected, copied to the cut buffer (ctrl-c) and pasted
into a text editor will not include the newlines ;(.
line 1
line 2
will become
line 1line2
when copied to the cut buffer.
Reproducible: Always
Steps to Reproduce:
1. Placed multiple lines into a div with style "white-space: pre-wrap;"
2. Copy rendered lines to the cut buffer with ctrl-c
3. Paste result into any text editor and notice newlines are ignored
Actual Results:
line 1line2
Expected Results:
line 1
line 2
the workaround is to mark "newlines" in the styled div with a <br /> tag...
<div style="white-space: pre-wrap;">line 1<br />line 2</div>
renders AND copies correctly
Component: Style System (CSS) → DOM to Text Conversion
QA Contact: style-system → dom-to-text
Comment 1•17 years ago
|
||
This sounds like bug 116083 to me.
Updated•16 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•