ref: add7d8d0bdf124a07da832eb718b72309f1b27fb
parent: 44336216a011b4098420ba5891e1951aad2c6af0
author: sl <uriel@engel.se.cat-v.org>
date: Tue Mar 3 17:04:17 EST 2009
Revert the <ul> fix which was not really correct, and fix another missing </li>.
--- a/bin/corehandlers.rc
+++ b/bin/corehandlers.rc
@@ -9,7 +9,6 @@
| sed $dirfilter'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; s!^'$sitedir'!!; '$dirclean \
| sort -u | awk -F/ '
function p(x, y, s) { for(i=0; i < x-y; i+=1) print s }
- BEGIN { lNF=1 }
{
d = ""
if(match($0, "/$"))
@@ -25,11 +24,11 @@
gsub("_", " ", bname)
if(index(ENVIRON["req_path"] "/", path) == 1)
- print "<li><a href=\"" path "\" class=\"thisPage\">»<i> " bname "</i></a>"
+ print "<li><a href=\"" path "\" class=\"thisPage\">»<i> " bname "</i></a></li>"
else
print "<li><a href=\"" path "\">› " bname "</a></li>"
}
- END { p(lNF, 1, "</ul>") }'
+ END { p(lNF, 0, "</ul>") }'
}
fn link_bar {