Topic on Help talk:Extension:Linter

Jump to navigation Jump to search

Spaces in nested lists are interpreted as genuine spaces with the new parser, spoil .hlist behaviour

6
Summary by SSastry (WMF)
Jack who built the house (talkcontribs)

On wikis where @Edokter's .hlist class is in use (enwiki, ruwiki, frwiki etc.), nested lists fail to render correctly when spaces after asterisks/colons are used. In ruwiki, where this is the standard code style, it became a common issue after new parser got deployed, and edits like this have to be made, which spoils the codestyle.

Code

* Item
** Subitem
** Subitem

Expected view
Item (Subitem • Subitem)

Actual view
Item ( Subitem • Subitem)

I guess, spaces after asterisks/colons in the beginning of a line shouldn't be treated as genuine spaces, appearing in the result HTML.

Should I post it to Phabricator instead of here?

SSastry (WMF) (talkcontribs)
SSastry (WMF) (talkcontribs)

@Jack who built the house, I've updated the description of T157418 and have scheduled it for an RFC discussion. If you have any thoughts on the specific questions in the description, please weigh in there.

SSastry (WMF) (talkcontribs)
SSastry (WMF) (talkcontribs)

@Jack who built the house @Stryn The changes to wikitext parsing to deal with this issue as part of T157418 has now been deployed. Please let me know if hlist issues are resolved on ruwiki (you may need to purge the cached contents of a page to verify).

Jack who built the house (talkcontribs)