From 218accf465870cd1435c8d6b4b81fa2008eda321 Mon Sep 17 00:00:00 2001 From: Uriel Date: Mon, 5 Jan 2009 05:48:23 +0100 Subject: [PATCH] Two other minor code formating changes for readability. --- bin/werc.rc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bin/werc.rc b/bin/werc.rc index 7042e6d..fdd0052 100755 --- 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 "
  • › " bname "
  • " } - END { p(lNF, 0, "") } - ' + END { p(lNF, 0, "") }' }