]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
feed: capitalize "Atom" consistently
[public-inbox.git] / lib / PublicInbox / Feed.pm
index 5a2f62b193d0db0241cf525f3d4c975ea3fa60f3..e66b678bf062637aae69851c1d03af86ceb8fe74 100644 (file)
@@ -12,7 +12,7 @@ use PublicInbox::View;
 use PublicInbox::MID qw/mid_clean mid2path/;
 use POSIX qw/strftime/;
 use constant {
-       DATEFMT => '%Y-%m-%dT%H:%M:%SZ', # atom standard
+       DATEFMT => '%Y-%m-%dT%H:%M:%SZ', # Atom standard
        MAX_PER_PAGE => 25, # this needs to be tunable
 };
 
@@ -74,7 +74,7 @@ sub emit_atom {
                add_to_feed($feed_opts, $fh, $path, $git);
        });
        $git = undef; # destroy pipes
-       _end_feed($fh);
+       end_feed($fh);
 }
 
 sub _no_thread {
@@ -84,7 +84,7 @@ sub _no_thread {
        $fh->close;
 }
 
-sub _end_feed {
+sub end_feed {
        my ($fh) = @_;
        Email::Address->purge_cache;
        $fh->write('</feed>');
@@ -108,7 +108,7 @@ sub emit_atom_thread {
                add_to_feed($feed_opts, $fh, mid2path($msg->mid), $git);
        }
        $git = undef; # destroy pipes
-       _end_feed($fh);
+       end_feed($fh);
 }
 
 sub emit_html_index {
@@ -194,7 +194,7 @@ sub nav_footer {
                $head = $cgi->path_info;
                $head = qq!<a\nhref="$head">head</a>!;
        }
-       my $atom = "<a\nhref=\"$feed_opts->{atomurl}\">atom</a>";
+       my $atom = "<a\nhref=\"$feed_opts->{atomurl}\">Atom</a>";
        "<a\nname=\"s$anchor\">page:</a> $next $head $atom";
 }