Fixed the trailing double-dash problem for entries without

description files.
This commit is contained in:
nsj 1998-03-13 18:51:46 +00:00
parent 36974307af
commit cdd80c14b1
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=2528
2 changed files with 14 additions and 2 deletions

View file

@ -57,7 +57,13 @@ while (<DBFILE>)
m/([^\t]+)\t([^\t]+)\t([^\t]+)\t([^\t]*)\t([^\t]+)\t([^\t]+)\t([^\t]+)/;
# Dump it out to the file, in SGML <LI> format
print "<LI><A HREF=\"$url\"><STRONG>$name</STRONG></A> -- $description</LI>\n";
if ($description ne "")
{
print "<LI><A HREF=\"$url\"><STRONG>$name</STRONG></A> -- $description</LI>\n";
} else {
print "<LI><A HREF=\"$url\"><STRONG>$name</STRONG></A></LI>\n";
};
};
# Close the pipe like good little daemons.

View file

@ -57,7 +57,13 @@ while (<DBFILE>)
m/([^\t]+)\t([^\t]+)\t([^\t]+)\t([^\t]*)\t([^\t]+)\t([^\t]+)\t([^\t]+)/;
# Dump it out to the file, in SGML <LI> format
print "<LI><A HREF=\"$url\"><STRONG>$name</STRONG></A> -- $description</LI>\n";
if ($description ne "")
{
print "<LI><A HREF=\"$url\"><STRONG>$name</STRONG></A> -- $description</LI>\n";
} else {
print "<LI><A HREF=\"$url\"><STRONG>$name</STRONG></A></LI>\n";
};
};
# Close the pipe like good little daemons.