Page MenuHomePhabricator

Can't remove an empty linebreak between two tables
Closed, ResolvedPublic

Description

  • Create a document:
TABLE
empty paragraph
TABLE
  • Place your cursor in the empty paragraph
  • Press delete or backspace

Expected
The table paragraph before/after is deleted

Observed
The table before/after is selected

The same happens if you replace the tables with other block elements, e.g. block images.

Event Timeline

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

[VisualEditor/VisualEditor@master] Delete empty paragraphs when next to block nodes

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

Change 928882 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Delete empty paragraphs when next to block nodes

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

Change 930260 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

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

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

Change 930260 merged by jenkins-bot:

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

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

Ryasmeen removed a project: Editing QA.
Ryasmeen subscribed.

This is still happening. Pressing backspace/delete when the cursor is in the empty paragraph selects the previous table, doesn't delete it.

Works for me. The vertical space of the paragraph doesn't disappear because it gets replaced by a "block slug", which you can click to re-insert the paragraph:
Before:

image.png (320×162 px, 1 KB)

After backspacing:

image.png (329×508 px, 7 KB)

...then moving the selection
image.png (329×508 px, 6 KB)

This is still happening. Pressing backspace/delete when the cursor is in the empty paragraph selects the previous table, doesn't delete it.

@Ryasmeen: are you able to share a screen recording of what you're seeing?

...it appears @Esanders has not yet been able to reproduce the issue you encountered.

This is still happening. Pressing backspace/delete when the cursor is in the empty paragraph selects the previous table, doesn't delete it.

@Ryasmeen: are you able to share a screen recording of what you're seeing?

...it appears @Esanders has not yet been able to reproduce the issue you encountered.

@ppelberg /@Esanders: The task description says expected result is, the table before/after should be "deleted" instead of getting selected. It is right now getting selected as @Esanders mentioned.

@ppelberg /@Esanders: The task description says expected result is, the table before/after should be "deleted" instead of getting selected. It is right now getting selected as @Esanders mentioned.

Apologies, the expected case should've said "paragraph"!