]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/txt2pre
doc: give txt files proper titles
[public-inbox.git] / Documentation / txt2pre
index 4c4b2ca2f77b6189b6a72f5f27623a89d5558ef4..9a81a24a007a5e861bbd59d33a46876476e76384 100755 (executable)
@@ -11,8 +11,7 @@ use PublicInbox::Linkify;
 use PublicInbox::Hval qw(ascii_html);
 
 my $str = eval { local $/; <> };
-my $title = $ENV{TITLE};
-($title) = ($str =~ /\A([^\n]+)/) unless $title;
+my ($title) = ($str =~ /\A([^\n]+)/);
 $title = ascii_html($title);
 my $l = PublicInbox::Linkify->new;
 $str = $l->linkify_1($str);