Introduction
Introduction Statistics Contact Development Disclaimer Help
Stop generating an extra superfluous <ul></ul> in sidebar menu. - swerc - ansel…
git clone git://git.suckless.org/swerc
Log
Files
Refs
README
---
commit 96d4cff57982667c57684ca9112dd2e112f3d9ad
parent 426a9e7382f293b51cbc7e4fda7f71ca8cb312a1
Author: uriel@soma <unknown>
Date: Tue, 3 Mar 2009 21:38:22 +0000
Stop generating an extra superfluous <ul></ul> in sidebar menu.
Diffstat:
M bin/corehandlers.rc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/bin/corehandlers.rc b/bin/corehandlers.rc
@@ -9,6 +9,7 @@ fn nav_tree {
| sed $dirfilter'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; s!^'$sitedi…
| 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, "/$"))
@@ -28,7 +29,7 @@ fn nav_tree {
else
print "<li><a href=\"" path "\">&rsaquo; " bname "</a></li>"
}
- END { p(lNF, 0, "</ul>") }'
+ END { p(lNF, 1, "</ul>") }'
}
fn link_bar {
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.