From: Wolfgang Bangerth Date: Sat, 13 Feb 2016 22:01:37 +0000 (-0600) Subject: Separate authors by commas, avoid space at the end. X-Git-Tag: v8.5.0-rc1~1313^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99f8b368f9991e00597476dc120c2237fac1f1e6;p=dealii.git Separate authors by commas, avoid space at the end. --- diff --git a/doc/doxygen/scripts/code-gallery.pl b/doc/doxygen/scripts/code-gallery.pl index 8f37c3732c..f83aa6fdbc 100644 --- a/doc/doxygen/scripts/code-gallery.pl +++ b/doc/doxygen/scripts/code-gallery.pl @@ -39,9 +39,14 @@ foreach my $gallery (sort @ARGV) open AUTHOR, "<$gallery_dir/$gallery/doc/author"; my $authors; while (my $line = ) { - $authors .= $line; + chop $line; + $authors .= $line . ", "; } + # remove trailing whitespaces, as well as the trailing comma + chop $authors; + $authors =~ s/,$//; + $gallery_underscore =~ s/-/_/; print "
\@ref code_gallery_${gallery_underscore} \"$gallery\" (by $authors)
\n"; print "
\n";