]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/map.pm
delete inline data after it's used
[ikiwiki.git] / IkiWiki / Plugin / map.pm
index 5b6af1f36f6ce0c6cc9605365ed491d123d09efd..581ae5011f8a002190f133f6ce999797bae43b1b 100644 (file)
@@ -37,6 +37,9 @@ sub preprocess (@) { #{{{
                                my @b=split(/\//, $common_prefix);
                                $common_prefix="";
                                while (@a && @b && $a[0] eq $b[0]) {
+                                       if (length $common_prefix) {
+                                               $common_prefix.="/";
+                                       }
                                        $common_prefix.=shift(@a);
                                        shift @b;
                                }