Page MenuHomePhabricator

Put signature on a new line when comment ends with list
Closed, DuplicatePublic

Assigned To
None
Authored By
Iniquity
Jul 30 2022, 2:22 PM
Referenced Files
F35372098: image.png
Aug 1 2022, 2:20 AM
F35372096: image.png
Aug 1 2022, 2:20 AM
F35371839: image.png
Jul 31 2022, 10:15 PM
F35371832: image.png
Jul 31 2022, 10:15 PM
F35371830: image.png
Jul 31 2022, 10:15 PM
F35362733: image.png
Jul 30 2022, 2:22 PM

Description

If there are several messages in a row with numbered lists, they are merged into 1 large list. This should not be and they should create new lists. This can be done with a line break.

image.png (506×764 px, 43 KB)

https://ru.wikipedia.org/wiki/Обсуждение_участника:Iniquity/Черновик#Numericals

Event Timeline

It's actually disappointing that DT doesn't add a newline (and even trims existing ones!) when there is a list at the end of the comment. DT with its own hands creates the worst possible layout from parsing POV which I had a lot of headache dealing with while developing Convenient-Discussions.

image.png (282×1 px, 14 KB)
image.png (155×424 px, 9 KB)

The worst thing happens when this is a numbered list, which means the replies will have # as the first indentation character:

image.png (89×75 px, 1 KB)

...which is crazy since there is no voting or something and # is only a part of the user's comment. @Iniquity gave the example in the task description what it can lead to.

Jack_who_built_the_house renamed this task from Wrap sign on a new line when working with numbered lists to Put signature on a new line when comment ends with list.Jul 31 2022, 10:15 PM

If it's OK I repurposed the task from numbered lists to any lists since the situation is no better with bulleted lists.

In addition, if a comment contains only a bulleted list, the items are undistinguishable from indentation. So, my comment here

image.png (100×570 px, 8 KB)

looks like this in CD
image.png (223×370 px, 10 KB)

(I could theoretically parse this as a list inside a comment; the reason I didn't do that is that on sites where * is used as indentation, while * is usually used only in front of the first line, you are more likely to meet * in front of every line than a comment composed solely of a list which is super-rare.)