diff --git a/bin/werc.rc b/bin/werc.rc index 7187a4d..44fb523 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -69,6 +69,8 @@ fn txt_handler { fn dir_listing_handler { d=`{basename -d $1} + if(~ $#d 0) + d='/' echo $d|sed 's,.*//,,g; s,/$,,; s,/, / ,g; s,.*,

&