Page MenuHomePhabricator

VisualEditor eats leading spaces on paste
Closed, ResolvedPublic1 Story Points

Description

Steps to reproduce: paste

*
    *
*

into the new wikitext editor. The space characters on the second line will disappear. This is true even for raw paste (ctrl-shift-v).

Tested on Chrome 55 / Ubuntu 16.04.

Event Timeline

Tgr created this task.Feb 7 2017, 2:35 AM
Restricted Application added a project: VisualEditor. · View Herald TranscriptFeb 7 2017, 2:35 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Tgr updated the task description. (Show Details)Feb 7 2017, 2:44 AM

In Firefox the spaces are almost preserved, only converted to non-breaking ones (which is reported in some other task, I can't find it at the moment).

Change 336445 had a related patch set uploaded (by Esanders):
Fix definition of HTML whitespace in converter

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

Esanders renamed this task from New wikitext editor eats leading spaces on paste to VisualEditor eats leading spaces on paste.Feb 7 2017, 5:56 PM
Esanders added a subscriber: Esanders.

This is actually not specific to NWE, it was a bug in the converter.

Change 336445 merged by jenkins-bot:
Fix definition of HTML whitespace in converter

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

Change 336450 had a related patch set uploaded (by Jforrester):
Update VE core submodule to master (121100d74)

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

Jdforrester-WMF closed this task as Resolved.Feb 7 2017, 6:57 PM
Jdforrester-WMF assigned this task to Esanders.
Jdforrester-WMF triaged this task as High priority.
Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.
Jdforrester-WMF set the point value for this task to 1.

Change 336450 merged by jenkins-bot:
Update VE core submodule to master (121100d74)

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