Page MenuHomePhabricator

Bullet list formatting is broken inside comments in the Reply tool's visual mode (can't exit list to create a non-list plain paragraph)
Closed, InvalidPublic

Description

This is not about setting the list formatting for the reply itself (that's T265750: Make it easy to "outdent" by changing the colons/list level). This is about adding a comment that happens to contain a list.

Steps to reproduce

  1. Click the 'Reply' button. Use the visual mode.
  2. Type a sentence. Press 'Return'
  3. Type * and a space and a word, to make a bullet list.
  4. Press 'Return'.
  5. Another item for your bullet list is automagically supplied.
  6. Now try to get back to a regular paragraph.

Goal:

Hello.  You need to do three things.
* First
* Second
* Third
Happy editing, ~~~~

What you get instead:

Hello.  You need to do three things.
* First
* Second
* Third
* Happy editing, ~~~~

Event Timeline

@Whatamidoing-WMF can you please try doing the below and commenting whether you get the result you are expecting?

...@matmarex and I have a hunch that what you're experiencing stems from the steps required to do what you are trying not being intuitive rather than a technical bug.


New steps to try

  1. Click the 'Reply' button. Use the visual mode.
  2. Type a sentence. Press 'Return'
  3. Type * and a space and a word, to make a bullet list.
  4. Press 'Return'.
  5. Another item for your bullet list is automagically supplied.
  6. Press 'Return' twice.
  7. Type some more text
  8. Publish the comment you just drafted

The usual method (outlined in PPelberg's comment) wasn't working for me for the ~two weeks before I filed this bug report, but it started working on https://en.wikipedia.org/wiki/Wikipedia:THURSDAY

Whatamidoing-WMF renamed this task from Bullet list formatting is broken inside comments in the Reply tool's visual mode to Bullet list formatting is broken inside comments in the Reply tool's visual mode (can't exit list to create a non-list plain paragraph).Jun 8 2021, 3:57 PM
Whatamidoing-WMF closed this task as Invalid.

This seems to have been resolved, presumably by some other patch/the consequence of some other work.

Pressing return while the caret is within an empty list-item does indeed convert it to a regular paragraph for me, as expected.