bagder: curl-www/auto last5commits.pl,1.8,1.9
[email protected] Sun, 28 Mar 2010 21:29:52 +0000
| Newsgroups | gmane.comp.web.curl.www.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/curl/curl-www/auto
In directory giant.haxx.se:/var/tmp/cvs-serv19674
Modified Files:
last5commits.pl
Log Message:
make newline separations in commit message become <p>
Index: last5commits.pl
===================================================================
RCS file: /cvsroot/curl/curl-www/auto/last5commits.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- last5commits.pl 26 Mar 2010 06:58:03 -0000 1.8
+++ last5commits.pl 28 Mar 2010 21:29:49 -0000 1.9
@@ -26,16 +26,20 @@
$cl = $counter++&1?"odd":"even";
if($c{'commit'}) {
my $auth = $c{'Author:'};
+ my $desc = $c{'desc'};
$auth =~ s/</[/g;
$auth =~ s/>/]/g;
$auth =~ s/@/ at /g;
$auth =~ s/ at (.)/ at $1 /;
+
+ $desc =~ s/ */<p>/g;
+
printf("<tr class=\"%s\"><td nowrap><a href=\"%s/%s\">%s</a></td><td>%s</td><td><pre>%s</pre></td><td>%s</td></tr>\n",
$cl,
"http://github.com/bagder/curl/commit",
$c{'commit'},
$c{'Date:'}, $auth,
- $c{'files'}, $c{'desc'});
+ $c{'files'}, $desc);
}
undef %c;
}