plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 3d52c7487fea9190d8ec0ae3afcfa5ac40ee3382
parent 60cbcf86349c08ebbce7e20090413bb73bab2013
Author: Russ Cox <rsc@swtch.com>
Date:   Sat,  6 Dec 2008 16:34:33 -0800

manweb: avoid null concatenation

Diffstat:
Mdist/manweb | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/dist/manweb b/dist/manweb @@ -32,6 +32,10 @@ for(i in */INDEX) @{ echo '<tr height=1><td colspan=2 bgcolor=#cccccc>' echo '<tr height=1><td>' } + if(~ $#name 0) + name=XXX-name-$j-XXX + if(~ $#n 0) + n=XXX-n-$j-XXX echo -n '<tr><td valign=top><a href="'$name'.html">'$name'('$n')</a><td>' sed -n ' /SH *NAM/,/SH/{