diff options
author | Eric Wong <e@80x24.org> | 2015-09-30 21:25:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-30 21:33:34 +0000 |
commit | e012d02ca21ddd01864c683e9cec318190abb047 (patch) | |
tree | ab729edc82e56b9740ea628a08775c8a71929dba /Documentation/txt2pre | |
parent | 6d4c168ed494d1f4681a00062aab92baff50e94a (diff) | |
download | public-inbox-e012d02ca21ddd01864c683e9cec318190abb047.tar.gz |
That's right, we now have our NNTP server running and are self-hosting a read-only news gateway at: nntp://news.public-inbox.org/inbox.comp.mail.public-inbox.meta
Diffstat (limited to 'Documentation/txt2pre')
-rwxr-xr-x | Documentation/txt2pre | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/txt2pre b/Documentation/txt2pre index acc6ca94..ef6a4f35 100755 --- a/Documentation/txt2pre +++ b/Documentation/txt2pre @@ -17,7 +17,9 @@ my ($title) = ($str =~ /\A([^\n]+)/); # temporarily swap > for escape so our s!! to add href works. # there's probably a way to do this with only a single s!! ... $str =~ s!>!\e!g; -$str =~ s!\b((ftp|https?)://[\w+\+\&\?\.\%\;/#-]+)!<a\nhref="$1"\n>$1</a>!g; +$str =~ s!\b((nntp|ftp|https?)://[\w+\+\&\?\.\%\;/#-]+)!<a +href="$1"\n>$1</a>!g; + $str =~ s!\e!>!g; # swap escapes back to > print '<html><head>', |