Page MenuHomePhabricator

Pasted text has line breaks
Closed, ResolvedPublic

Description

Author: nkomura

Description:
linebreaks are inserted when a block of text is pasted.

When a block of text is copy/cut and pasted in the text editor, line breaks are inserted. Please see the attachment.

This problem was observed with FF3.0 on Ubuntu 9.04, FF3.5.5 on Windows 7. Opera10 on Windows 7 did not exhibit this problem.


Version: unspecified
Severity: critical
OS: Linux
URL: http://en.wikipedia.org/w/index.php?title=Babaco&action=edit

Attached:

linebreakbugFF3Ubuntu9.04.png (487×1 px, 58 KB)

Details

Reference
bz22398

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.
StatusSubtypeAssignedTask
ResolvedNone
Resolved TrevorParscal

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 10:51 PM
bzimport set Reference to bz22398.

nkomura wrote:

Adjusting importance to high/major

ngautam wrote:

Extra linebreaks also appear when copying/pasting (1 linebreak becomes two)

nkomura wrote:

Trevor says that the fix was applied on February 5th, but the problem still exists with FF3 on Ubuntu 9.04.

wikibugs wrote:

Tested link : http://prototype.wikimedia.org/deployment-en/

On following browsers the functionality fails

FireFox 3.6
FireFox 3.5
FireFox 3.0
Safari 4

At the time of text paste it shows the defined error but after click on preview the text align as normal
Chrome 4
IE8
Opera 10

IE7 and Opera 9.6 function normally

(In reply to comment #2)

Extra linebreaks also appear when copying/pasting (1 linebreak becomes two)

FYI this also happens when copying text from the edit window and pasting it in an external text editor

wikibugs wrote:

Tested link : http://prototype.wikimedia.org/deployment-en/
Version : r62215

When text copy/paste from a word document to editor, following browsers show extra line break.

Windows Env
Fire Fox 3.0 / 3.5 / 3.6
Chrome 4
Safari 4
Opera 10

Fedora Env
Fire Fox 3.0

Note: Did not used an external editor.

wikibugs wrote:

Wiki_bug_2010-02-12_22398.pdf

Tested link : http://prototype.wikimedia.org/deployment-en/
Version : r62243

Please refer the attachment for screen prints.

Following behaviors noted

FireFox 3.6 - additional line break added

Chrome 4/ Safari 4 - all the line breaks are removed

Attached:

This has been fixed in revisions r62329 and r62334 but not yet deployed.

wikibugs wrote:

Tested link: http://prototype.wikimedia.org/deployment-en/
Version : r62529

Bug still can be reproduce and the output is same as the attachment (id=7109).

wikibugs wrote:

(In reply to comment #10)

Tested link: http://prototype.wikimedia.org/deployment-en/
Version : r62529

Bug still can be reproduce and the output is same as the attachment (id=7109) [details].

Re-loaded all the browsers with Shift + Refresh.

FireFox versions add additional HTML tag before the pasted text.

Opera 9.6 / Chrome 4 and Safari 4 behave the same way as given in the document. Other browsers display the copy and pasted text normal.

Therefore conclude as bug is not fixed.

wikibugs wrote:

Wiki_bug_2010-02-16_22398.pdf

Screen prints

Attached:

wikibugs wrote:

(In reply to comment #12)

Created an attachment (id=7130) [details]
Wiki_bug_2010-02-16_22398.pdf

Screen prints

The screen prints are for the scenario when text pasted from a word document.

Scenario 02 : Copy text from wiki document and past in another wiki editor :
Safari 4/ Chrome 4 delete all the line breaks

Scenario 03 :Edit a wiki document, copy the content and paste in another wiki editor
Opera 9.6 add an additional line break, Safari 4/ Chrome 4 delete all the line breaks and in other browsers it shows normal.
Therefore conclude as bug is not fixed.

nkomura wrote:

reopening based on the test results.

Part of this bug is actually a duplicate of...

Bug 22428 - "Line breaks in pasted text not picked up in Safari 4, Chrome 4"

And the other part of this bug (copying text from the wikiEditor to an external editor) is a much different bug than this started out as or is titled with. Marking this as duplicated and adding new bug...

Bug 22554 - "Text copied from wikiEditor and pasted in external editor has extra blank lines"

  • This bug has been marked as a duplicate of bug 22428 ***