[Webkit-unassigned] [Bug 19521] New: <PRE> text copied from Safari - linefeeds are stripped when pasted in Mail

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 12 10:42:07 PDT 2008


           Summary: <PRE> text copied from Safari - linefeeds are stripped
                    when pasted in Mail
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Major
          Priority: P1
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: gibbonsb at mac.com

Plain pre-formatted text (<PRE>) copied from Safari, either in the page or in a
form area, gets munged somehow in and when it is pasted straight into Mail.app,
it is stripped of all the line feeds, so it becomes one big block of text.

Steps to reproduce:

1) Open attached "reduced.html" in Safari
2) Select the text presented in the view
3) copy it to the clipboard.
4) Go to mail and start a new message.
5) Click in the body area of the mail message
5) Paste the text.

If your default Compose style is "Rich text" the pasted material will look
normal. But if you send it to someone using, say, Outlook on windows, the text
will be stripped of line feeds when they get it. To see how it will appear to
them, select "Make Plain Text" from the Format menu in Mail and it will turn
the nice table into a munged block of nonsense.

If your default Compose style is "Plain text" then you'll see the text stripped
of line feeds when you paste it into the new mail message.

When I follow the steps above using Firefox the problem does not occur. The
text is fine.

Workaround: I have attached an applescript script which, if engaged before
pasting in the text, will prevent the problem from occurring.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list