Wikipedia talk:WikiProject Accessibility/LISTGAP

LISTGAP
See the bot request for approval at Bots/Requests for approval/BG19bot 9 for the discussion to approve a bot to remove blank lines between list items, per WP:LISTGAP. – Wbm1058 (talk) 13:25, 5 February 2016 (UTC)

Example
Wikicode:
 * BEFORE
 * a


 * b


 * c

HTML:  a    b    c  

Spoken by a screen reader as "List of 1 items, a, list end; List of 1 items, B, list end; List of 1 items, c, list end"

Wikicode:
 * AFTER
 * a
 * b
 * c

HTML:  a  b </li> <li>c </li> </ul>

Spoken by a screen reader as "List of 3 items, A, B, C, list end"

HTML comment trick
Use the "HTML comment trick" to add a blank line between items in the wikicode to avoid editor confusion. This is done with a commented-out line: --&gt; This doesn't produce unwanted visible spacing or bad list code in the rendered page like adding a plain blank line would:
 * First item&lt;!--
 * Second item
 * First item
 * Second item

Extra * trick
A line containing just a "*" leaves a visible gap in the edit box, but produces a list item that is neither displayed, nor announced by screen readers because it has display:none set. produces:
 * long item a
 * long item b
 * long item b
 * long item a
 * long item b
 * long item b

Source
Above copied from Wikipedia talk:WikiProject Accessibility/Archive 6