Last modified: 2013-11-26 22:40:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55828, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53828 - VisualEditor: Pasting text into VE from external text processor removes newlines
VisualEditor: Pasting text into VE from external text processor removes newlines
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Normal normal
: VE-deploy-2013-12-05
Assigned To: Ed Sanders
:
Depends on:
Blocks: ve-richpaste
  Show dependency treegraph
 
Reported: 2013-09-05 21:56 UTC by Siddhartha Ghai
Modified: 2013-11-26 22:40 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Siddhartha Ghai 2013-09-05 21:56:58 UTC
System environment:
Win7 X64
Google Chrome 29.0.1547.62 m

Steps to reproduce:
Open a page
Edit it in VE
Copy-paste the following text:
a
b
c
d
e

Expected output:
a
b
c
d
e

Actual output:
abcde

The problem has been tested with notepad++ as the external editor, with line endings in windows format (CRLF), UNIX format (LF) and MAC format (CR). Newline is not copied in any of the cases.

The problem has also been tested by trying to copy-paste html text from chrome itself. Newline is not copied.
Comment 1 Chris McKenna 2013-09-05 22:30:28 UTC
Confirmed in Firefox 23 / Xubuntu Linux / Monobook

Using kwrite:
Tested with \n  \r and \r\n end of lines and it makes no difference.
Tested also using UTF-8, UTF-16, ISO-8859-1, ISO-8859-2 and Windows-1258 encodings.

Also tested copying from this page viewed in Firefox, Konqueror and Linuks, from a PDF, a text file in a terminal, and again from kwrite using the following:

a

b

c

d

e

None of it makes the slightest bit of difference.

https://en.wikipedia.org/w/index.php?title=User%3AThryduulf%2Fsandbox3&diff=571705481&oldid=571089410 is the copy from comment 0
Comment 2 Gerrit Notification Bot 2013-10-07 14:51:49 UTC
Change 86664 had a related patch set uploaded by Esanders:
Rich paste

https://gerrit.wikimedia.org/r/86664
Comment 3 Ed Sanders 2013-10-07 14:54:38 UTC
Works with gedit & chrome with the rich paste patch.
Comment 4 Gerrit Notification Bot 2013-11-26 21:08:02 UTC
Change 86664 merged by jenkins-bot:
Rich paste

https://gerrit.wikimedia.org/r/86664

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links