Bug 553579

Summary: "white-space: pre-wrap" does not preserve new lines (copy & paste)
Product: [Fedora] Fedora Reporter: Petr Šplíchal <psplicha>
Component: firefoxAssignee: Martin Stransky <stransky>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 12CC: campbecg, gecko-bugs-nobody, ohudlick
Target Milestone: ---Keywords: Reopened, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-07 16:04:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Simple test case page none

Description Petr Šplíchal 2010-01-08 10:27:57 UTC
Description of problem:

When a text is formatted using css style "white-space: pre-wrap"
and this text is then copied to clipboard using ctrl-c all new
lines are substituted with spaces and pasting the content results
in one long line. The same applies to "white-space: pre". This
behaviour makes copy & paste almost unusable when the white space
needs to be preserved (which is the actual purpose of pre style).

Version-Release number of selected component (if applicable):
firefox-3.5.6-1.fc12.i686

Example html code:
<html>
    <body>
        <div style="white-space: pre">
one 
two 
three
        </div>
    </body>
</html>

Steps to Reproduce:
1. select text
2. copy the selection
3. paste to another location
  
Actual results:
one two three

Expected results:
one
two
three

Additional info:
The <pre> tag works fine.

Comment 1 Petr Šplíchal 2010-01-08 10:32:57 UTC
Created attachment 382434 [details]
Simple test case page

Comment 2 Petr Šplíchal 2010-01-20 16:38:38 UTC
Any update on this? Copy & paste with this firefox behavior is a
real disaster...

Comment 3 Petr Šplíchal 2010-05-20 07:26:51 UTC
Ping. Can we get this fixed?

Comment 4 Chris Campbell 2010-05-24 14:43:19 UTC
-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 5 Bug Zapper 2010-11-04 01:33:50 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Bug Zapper 2010-12-04 00:42:40 UTC
Fedora 12 changed to end-of-life (EOL) status on 2010-12-02. Fedora 12 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 7 Petr Šplíchal 2011-07-07 06:14:16 UTC
The problem still present in the latest firefox-5.0-2.fc15.x86_64.

Comment 8 Christopher Aillon 2011-07-07 14:30:07 UTC
Sorry this has gone so long without a response.  Anyway, this bug really needs to be addressed upstream, not in Fedora.  Have you filed a bug with mozilla yet?

Comment 9 Petr Šplíchal 2011-07-07 14:55:42 UTC
Looked through the upstream bugzilla and found this one:

    https://bugzilla.mozilla.org/show_bug.cgi?id=116083

which will soon celebrate 10th anniversary ;-)

Comment 10 Christopher Aillon 2011-07-07 16:04:16 UTC
:-) lets hope it doesnt take another ten years then to fix. closing as upstream.