Topic on Help talk:Lint errors/tidy-font-bug

Summary by SSastry (WMF)

This is a bug in linter because of faulty testing. https://www.mediawiki.org/w/index.php?title=User:SSastry_(WMF)/Sandbox&oldid=2607140&action=parsermigration-edit#Tidy_font_bug_&_images shows that image captions aren't affected.

Bdijkstra (talkcontribs)

Is the linter supposed to flag cases where no text appears between double brackets? E.g. on nl:Station Antwerpen-Centraal, the top of the infobox is an image, which is wrapped between font-tags.

SSastry (WMF) (talkcontribs)

Image captions are also affected, although maybe we don't have checks for whether the image caption is absent. For that scenario, we don't need to flag a lint error.

Bdijkstra (talkcontribs)

Are you sure? Captions shouldn't render differently, and if they do, I suppose that would be a different linter category.

SSastry (WMF) (talkcontribs)

Hmm ... you are right. I am sure I tested it, but, clearly I botched my testing there! I'll update my linter code to not flag image captions. Thanks for the bug report! :)

SSastry (WMF) (talkcontribs)