Page MenuHomePhabricator

VE treats an empty line as if it has one extra invisible character
Closed, ResolvedPublic8 Estimated Story Points

Description

Steps to reproduce:

  1. Start with a simple, multi-paragraph page:
Paragraph 1

Paragraph 2
  1. Place the cursor at the end of the first line/paragraph.
  1. Press the (right) arrow key to advance to the second paragraph

Expected results:
You have to press the arrow key once to get into the blank line, and once to get out of the blank line/to the start of Paragraph 2.

Actual results:
You have to press the arrow key once to get into the blank line, and twice to get out of the blank line/to the start of Paragraph 2.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Looks like this is an issue with the inline slug in the empty paragraph, pinging @dchan

Jdforrester-WMF renamed this task from Cursor behavior is strange on blank lines to You need to double-cursor to move across an inline slug, which makes editing "blank" lines in NWE confusing.Apr 18 2017, 7:09 PM
Jdforrester-WMF triaged this task as Low priority.
Jdforrester-WMF set the point value for this task to 8.
Jdforrester-WMF moved this task from To Triage to TR1: Releases on the VisualEditor board.

We may be able to disable a bunch of the slugging features in source mode as we know there will never be annotations. This will still behave like this in visual mode though.

I would like this to be prioritized higher, it really makes for a jarring text editing experience.

Nardog renamed this task from You need to double-cursor to move across an inline slug, which makes editing "blank" lines in NWE confusing to 2017 editor treats an empty line as if it has one extra invisible character.Feb 5 2026, 2:17 AM
Nardog subscribed.

We actually did remove the slugs to avoid this after those last comments (in rGVEDc0799b060844f26fe35cd1f6e661dc6702d0c925), but then that caused T225546, and so we restored them for non-block contexts.

Esanders renamed this task from 2017 editor treats an empty line as if it has one extra invisible character to VE treats an empty line as if it has one extra invisible character.EditedFeb 12 2026, 11:10 AM
Esanders edited subscribers, added: WhatamIdoing; removed: • Whatamidoing-WMF.

This is not specific to the 2017 editor, it is equally broken in visual mode (it's just less common there).

Change #1239033 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] LinearArrowKeyDownHandler: Handle left/right in empty paragraphs

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

Change #1239033 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] LinearArrowKeyDownHandler: Handle left/right in empty paragraphs

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

Change #1243867 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (5cb0e8219)

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

Change #1243867 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (5cb0e8219)

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

EAkinloose claimed this task.
Nardog added a subscriber: EAkinloose.