svn commit: r44121 - head/en_US.ISO8859-1/htdocs/cgi

Gabor Pali pgj at FreeBSD.org
Tue Mar 4 20:28:29 UTC 2014


Author: pgj
Date: Tue Mar  4 20:28:29 2014
New Revision: 44121
URL: http://svnweb.freebsd.org/changeset/doc/44121

Log:
  - Improve formatting when generating sponsor entries

Modified:
  head/en_US.ISO8859-1/htdocs/cgi/monthly.cgi

Modified: head/en_US.ISO8859-1/htdocs/cgi/monthly.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/monthly.cgi	Tue Mar  4 20:10:55 2014	(r44120)
+++ head/en_US.ISO8859-1/htdocs/cgi/monthly.cgi	Tue Mar  4 20:28:29 2014	(r44121)
@@ -126,7 +126,12 @@ if ($Submit)
 		push(@hidden, hidden("Sponsor$Num"));
 
 		next unless $sponsor;
-		push(@sponsors, xml(2, "sponsor", "", xmltext(3, $sponsor)));
+		push(@sponsors, xml(1, "sponsor", "", xmltext(2, $sponsor)));
+	}
+
+	if (@sponsors)
+	{
+		push(@sponsors, "\n");
 	}
 
 	my @tasks;
@@ -161,7 +166,6 @@ if ($Submit)
                 xml(2, "p", "", xmltext(3, @info))),
             "\n",
             @sponsors,
-            "\n",
             xml(1, "help", "", @tasks),
         );
 	my $contents = join('', @contents);


More information about the svn-doc-all mailing list