aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dowland <jon@ncl.ac.uk>2009-06-15 12:28:36 +0100
committerJon Dowland <jon@ncl.ac.uk>2009-06-15 12:28:36 +0100
commit82cc6ff4dadefa57c920c77ceb6a481afe6f0be9 (patch)
tree4957a1708bfe79210b0222c519e508271ab2cc44
parentd17bce8bb2b2cf375e1acd13d9f5ea706f13215f (diff)
downloadikiwiki-82cc6ff4dadefa57c920c77ceb6a481afe6f0be9.tar
ikiwiki-82cc6ff4dadefa57c920c77ceb6a481afe6f0be9.tar.gz
patch for this bug
-rw-r--r--doc/bugs/map_fails_to_close_ul_element_for_empty_list.mdwn19
1 files changed, 19 insertions, 0 deletions
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..28960b9d7 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
@@ -13,4 +13,23 @@ Presuming that the pagespec does not match, output:
The UL element is not closed.
+Patch[[!tag 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 .= "</li>\n</ul>\n";
+ }
+ - $map .= "</div>\n";
+ + $map .= "</ul>\n</div>\n";
+ return $map;
+ }
+
+
-- [[Jon]]