From: Joey Hess Date: Wed, 7 Nov 2007 21:34:50 +0000 (-0500) Subject: * map: Recent changes caused unnecessary ul's to be inserted for items X-Git-Tag: 2.12~37 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/930584cff747d87635da192585030d4fb30a2893?hp=144accb78c0025d7a88c4dcb170a73cfde93e35b * map: Recent changes caused unnecessary ul's to be inserted for items that were all at the same level, fix. Closes: #449285 --- diff --git a/IkiWiki/Plugin/map.pm b/IkiWiki/Plugin/map.pm index 65a6ed552..b08d78d76 100644 --- a/IkiWiki/Plugin/map.pm +++ b/IkiWiki/Plugin/map.pm @@ -61,6 +61,7 @@ sub preprocess (@) { #{{{ my $parent=""; my $indent=0; my $openli=0; + my $dummy=0; my $map = "
\n\n"; } } + $dummy=0; while ($depth < $indent) { $indent--; $map .= "\n"; @@ -91,6 +94,7 @@ sub preprocess (@) { #{{{ $map .= "