Skip to content

Commit

Permalink
Change docstring format.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Nov 28, 2011
1 parent 33a13f2 commit 0f23b32
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions hacks/index.md
Expand Up @@ -43,13 +43,12 @@ fn get_hs_desc {
}

fn get_shell_desc {
awk -F/ '
BEGIN { indesc=0; descover=0; }
/^$/ { if (indesc==0) { indesc=1; } }
/^#/ { if (indesc==1) { indesc=2; } }
/^[^#]/ { if (indesc==2) { descover=1; } }
/^$/ { if (indesc==2) { descover=1; } }
// { if (indesc==2 && descover!=1) { print $0 } }' \
awk -F/ '
BEGIN { indesc=1; skip=0; }
/^#!/ { next; skip=1; }
/^#/ { if (skip>0) { skip = skip - 1; next; } }
/^#/ { if (indesc==1) { print; next; } }
{ indesc=0; }' \
| sed 's/^# ?//' | $formatter
}

Expand Down

0 comments on commit 0f23b32

Please sign in to comment.