Closed Bug 1569175 Opened 4 years ago Closed 4 years ago

Copying part of text from elements with white-space:pre-wrap results in loss of newlines

Categories

(Firefox :: Untriaged, defect)

67 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1174452

People

(Reporter: gelraen.ua, Unassigned, NeedInfo)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0

Steps to reproduce:

Similar issues have been fixed before:
https://bugzilla.mozilla.org/show_bug.cgi?id=116083
https://bugzilla.mozilla.org/show_bug.cgi?id=1174452

Steps to reproduce:

  1. Open https://developer.mozilla.org/en-US/docs/Web/CSS/white-space
  2. In demo box click "white-space: pre-wrap;"
  3. Select and copy full demo text on the right, paste it in text editor
  4. Select and copy a few lines from the middle of the demo text, paste them in text editor too

Actual results:

In the first case (full text) newlines are preserved, but in the second - text get collapsed into a single line.

Expected results:

In both cases newlines should be preserved properly.

Hi,

I cannot reproduce the issue, since it has been fixed in Firefox 68 (Bug 1174452)
Could you please update your Firefox to the latest version and check again?

Thank you!

Flags: needinfo?(gelraen.ua)
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.