ref: a4fde198f16e1a9e136b04fcee01e699ae3fe9dc
parent: b7275e2da7c47129bbd250b5f271a482c5eb982b
author: uriel <[email protected]>
date: Mon Jan 5 00:48:23 EST 2009
Two other minor code formating changes for readability.
--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -38,11 +38,7 @@
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 @@
else
print "<li><a href=\"" path "\">› " bname "</a></li>"
}
- END { p(lNF, 0, "</ul>") }
- '
+ END { p(lNF, 0, "</ul>") }'
}