X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/d17bce8bb2b2cf375e1acd13d9f5ea706f13215f..9cab856ed70b566292982796187c0c1d71e9d433:/doc/bugs/map_fails_to_close_ul_element_for_empty_list.mdwn diff --git a/doc/bugs/map_fails_to_close_ul_element_for_empty_list.mdwn b/doc/bugs/map_fails_to_close_ul_element_for_empty_list.mdwn index c786c5f68..ad0f506f2 100644 --- a/doc/bugs/map_fails_to_close_ul_element_for_empty_list.mdwn +++ b/doc/bugs/map_fails_to_close_ul_element_for_empty_list.mdwn @@ -1,3 +1,5 @@ +[[!tag plugins/map patch]] + input: before. @@ -6,11 +8,86 @@ input: Presuming that the pagespec does not match, output: - <p>before. - <div class="map"> - <ul> - </div></p> +

before. +

+

The UL element is not closed. +Patch: + + --- /usr/share/perl5/IkiWiki/Plugin/map.pm 2009-05-06 00:56:55.000000000 +0100 + +++ IkiWiki/Plugin/map.pm 2009-06-15 12:23:54.000000000 +0100 + @@ -137,11 +137,11 @@ + $openli=1; + $parent=$item; + } + - while ($indent > 0) { + + while ($indent > 1) { + $indent--; + $map .= "\n\n"; + } + - $map .= "\n"; + + $map .= "\n\n"; + return $map; + } + + -- [[Jon]] + +> Strictly speaking, a `