Only output the <help> section if tasks were created - otherwise the
empty section needs removing manually during compilation.
This commit is contained in:
parent
2c29633dfe
commit
1d73911b1a
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=41532
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue