From e50b4ffa4ac7ac07cd4922459b292734b0e370bd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 7 May 2019 20:40:28 +0000 Subject: doc: give txt files proper titles We can fix the redundant rule in include.mk which causes make(1) on FreeBSD to complain; but HTML docs will likely still require GNU make. --- Documentation/txt2pre | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Documentation/txt2pre') diff --git a/Documentation/txt2pre b/Documentation/txt2pre index 4c4b2ca2..9a81a24a 100755 --- a/Documentation/txt2pre +++ b/Documentation/txt2pre @@ -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); -- cgit v1.2.3-24-ge0c7