Page MenuHomePhabricator

VisualEditor: Appending to a line shows additions before end of line in diff
Closed, ResolvedPublic

Description

Steps to reproduce:

  1. Find a page that already has a category
  2. Edit in VE, and add a category
  3. Review changes

Expected results:
The diff is

+**[[Category:New cat]]**

Actual results:
The diff is

-[[Category:Old cat]]
+[[Category:Old cat**]][[Category:New cat**]]

With the chunk between the stars viewed as added.

This also happens in the source editor, but it is less common that people will append a category to an existing category as that is against all style guidelines. However the Visual Editor is doing just that.


Version: 1.23.0
Severity: normal

Details

Reference
bz56880

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:27 AM
bzimport set Reference to bz56880.
bzimport added a subscriber: Unknown Object (MLST).
Aklapper lowered the priority of this task from Medium to Low.
Aklapper edited projects, added VisualEditor; removed MediaWiki-Page-diffs.
Aklapper added a subscriber: Aklapper.

I cannot reproduce this anymore with VE visual mode; the category gets added in a separate new line. Maybe this got fixed in T135667.
Please reopen if you can still reproduce.