Page MenuHomePhabricator

VisualEditor: Inserting whitespace in front of a paragraph shouldn't convert the paragraph to a preformatted block, but also shouldn't leave unneeded <nowiki>s
Closed, ResolvedPublic

Description

On English Wikipedia, a user reports the following:
*Added leading whitespace to paragraph in VE. Text appears fine in VE, with leading whitespace as an indentation.
*Saved. VE adds nowiki tags before the whitespace and after the first few words. Text displays without indent.
*Tried removing the whitespace in VE.
*VE won't allow the whitespace to be removed, but instead will only permit the first few words to be deleted.
This is with Chrome 28 + Windows 7. I'll see if I can work out the conditions that would have created the first problem. - Bilby (talk) 02:37, 16 July 2013 (UTC)
VEspaceremoval.png

I tried to replicate this myself.
*Added whitespace to the lead of an article, and it nowikied. http://en.wikipedia.org/w/index.php?title=Quadrangle_%28architecture%29&diff=564486949&oldid=563578917

*It turned the first word into an uneditable element. See image: http://en.wikipedia.org/wiki/File:VEspaceremoval.png

*Curious as to what the nowikis would do to formatting, I found an article that had formatting on the first word. It added space, no "nowiki." http://en.wikipedia.org/w/index.php?title=Marloth_Park&diff=564487138&oldid=557816381

  • It allowed me to remove the space in VE.

(Also using Chrome on 7.)


Version: unspecified
Severity: normal

Details

Reference
bz51528