]> Sergey Matveev's repositories - public-inbox.git/commitdiff
wwwlisting: show configured "infourl" properly
authorEric Wong <e@80x24.org>
Thu, 2 Jan 2020 03:09:29 +0000 (03:09 +0000)
committerEric Wong <e@80x24.org>
Thu, 2 Jan 2020 20:50:31 +0000 (20:50 +0000)
git's config file keys lack underscores, but my mind is wired
for underscores :x.  Fix the whitespace around the info URL
while we're at it, so that it shows up right under the inbox
description.

lib/PublicInbox/WwwListing.pm

index 7995b3154bcd8ceb17720b2001446fdae723cf34..1faade6cd39959c581481755ccec4863092b147c 100644 (file)
@@ -89,8 +89,8 @@ sub ibx_entry {
 * $ts - $url
   ${\$ibx->description}
 
-       if (defined(my $info_url = $ibx->{info_url})) {
-               $tmp .= "\n$info_url";
+       if (defined(my $info_url = $ibx->{infourl})) {
+               $tmp .= '  ' . $info_url . "\n";
        }
        $tmp;
 }