commit 842588adca529ba74b69258b755bf2c983349fb8
parent d6aff70c5102224da6f5a4bf6d857e1fc362f879
Author: uriel@engel.se.cat-v.org <unknown>
Date: Mon, 5 Jan 2009 05:48:23 +0100
Two other minor code formating changes for readability.
Diffstat:
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/bin/werc.rc b/bin/werc.rc
@@ -38,11 +38,7 @@ fn gensidebar {
ls -F $sitedir/./$req_paths_list >[2]/dev/null \
| sed 's!^'$sitedir'!!; '^$dirfilter^'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; '^$dirclean \
| sort -u | awk -F/ '
- function p(x, y, s) {
- for(i=0; i < x-y; i+=1)
- print s
- }
-
+ function p(x, y, s) { for(i=0; i < x-y; i+=1) print s }
{
d = ""
if(match($0, "/$"))
@@ -62,8 +58,7 @@ fn gensidebar {
else
print "<li><a href=\"" path "\">› " bname "</a></li>"
}
- END { p(lNF, 0, "</ul>") }
- '
+ END { p(lNF, 0, "</ul>") }'
}