mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 20:22:37 +01:00
misc/git-md-toc: improvent indentation of TOC
This commit is contained in:
parent
89f7c35593
commit
ca0051fb68
4
misc/git-md-toc
vendored
4
misc/git-md-toc
vendored
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user