Only output the <help> section if tasks were created - otherwise the

empty section needs removing manually during compilation.
This commit is contained in:
Gavin Atkinson 2013-05-01 12:28:35 +00:00
parent 2c29633dfe
commit 1d73911b1a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=41532

View file

@ -138,6 +138,7 @@ if ($Submit)
my @info = split("\n", $info);
my $title = "FreeBSD project submission output";
my $tasks = xml(1, "help", "", @tasks) if @tasks;
my @contents = xml(0, "project cat=\'$Category\'",
xml(1, "title", $Project),
@ -149,7 +150,7 @@ if ($Submit)
xml(1, "body",
xml(2, "p", "", xmltext(3, @info))),
"\n",
xml(1, "help", "", @tasks),
$tasks,
);
my $contents = join('', @contents);