3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-25 13:29:29 +01:00

misc/git-md-toc: improvent indentation of TOC

This commit is contained in:
Pragmatic Software 2020-01-21 18:08:05 -08:00
parent 89f7c35593
commit ca0051fb68

4
misc/git-md-toc vendored
View File

@ -127,7 +127,7 @@ exit 1 unless GetOptions(
},
"u|update" => \$update,
"x|maxdepth=i" => \$max_depth,
"m|mindepth=i" => \$min_depth,
"m|d|mindepth=i" => \$min_depth,
"f|filename" => \$use_filename,
);
@ -214,7 +214,7 @@ foreach ( @ARGV ) {
next unless $title;
$indent = " " x $depth;
$indent = " " x ($depth - ($min_depth - 1) < 0 ? 0 : $depth - ($min_depth - 1));
my $anchor_url;