4 \[[!map pages="sdfsdfsdfsd/*"]]
7 Presuming that the pagespec does not match, output:
14 The UL element is not closed.
18 --- /usr/share/perl5/IkiWiki/Plugin/map.pm 2009-05-06 00:56:55.000000000 +0100
19 +++ IkiWiki/Plugin/map.pm 2009-06-15 12:23:54.000000000 +0100
24 - while ($indent > 0) {
25 + while ($indent > 1) {
27 $map .= "</li>\n</ul>\n";
30 + $map .= "</ul>\n</div>\n";
37 > Strictly speaking, a `<ul>` with no `<li>`s isn't valid HTML either...
38 > could `map` instead delay emitting the first `<ul>` until it determines that
39 > it will have at least one item? Perhaps refactoring that function into
40 > something easier to regression-test would be useful. --[[smcv]]