]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
patch for this bug
authorJon Dowland <jon@ncl.ac.uk>
Mon, 15 Jun 2009 11:28:36 +0000 (12:28 +0100)
committerJon Dowland <jon@ncl.ac.uk>
Mon, 15 Jun 2009 11:28:36 +0000 (12:28 +0100)
doc/bugs/map_fails_to_close_ul_element_for_empty_list.mdwn

index c786c5f6868ef80480da71e16357f3607db4df49..28960b9d75fdd2a42e3a7e81ae44ade92ce393e0 100644 (file)
@@ -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]]