EmptyList


Testing how PmWiki applies styles to empty list items. In each list there are three entry, one with no content, one with   as the content and one with a literal space as the content.

* %item class=spacer%
* %item class=spacer% 
* %item class=spacer% 

# %item class=spacer%
# %item class=spacer% 
# %item class=spacer% 
  •  
  1.  

The HTML generated for the above is:

<ul><li>
</li><li class='spacer'>&nbsp;
</li><li class='spacer'> 
</li></ul><p class='vspace'></p><ol><li>
</li><li class='spacer'>&nbsp;

</li><li class='spacer'> 
</li></ol>

You note that the 'spacer' class is missing from the list items with no content. You'll also notice that the formatting of the two lists seems strange as well.

 0: 00.00 00.00 config start
 1: 00.02 00.01 config end
 2: 00.25 00.21 MarkupToHTML begin
 3: 00.25 00.22 MarkupToHTML begin
 4: 00.26 00.22 MarkupToHTML end
 5: 00.26 00.23 MarkupToHTML end
 6: 00.27 00.24 MarkupToHTML begin
 7: 00.28 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 8: 00.28 00.25 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 9: 00.29 00.25 MarkupToHTML end
10: 00.29 00.25 MarkupToHTML begin
11: 00.29 00.26 MarkupToHTML end
12: 00.29 00.26 now
Peak memory: 3,744,536 bytes