Skip to content

Commit 8a1285e

Browse files
authored
Merge pull request #116 from Barthelemy/fix-indentation
Fix the indentation of the generated TOC
2 parents f623275 + d8db8d1 commit 8a1285e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gh-md-toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ gh_toc_grab() {
218218
}
219219
modified_href = modified_href res
220220
}
221-
print sprintf("%*s", level*3, " ") "* [" text "](" gh_url modified_href ")"
221+
print sprintf("%*s", (level-1)*3, "") "* [" text "](" gh_url modified_href ")"
222222
'
223223
if [ `uname -s` == "OS/390" ]; then
224224
grepcmd="pcregrep -o"

0 commit comments

Comments
 (0)