about summary refs log tree commit homepage
path: root/Documentation/txt2pre
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-30 21:25:51 +0000
committerEric Wong <e@80x24.org>2015-09-30 21:33:34 +0000
commite012d02ca21ddd01864c683e9cec318190abb047 (patch)
treeab729edc82e56b9740ea628a08775c8a71929dba /Documentation/txt2pre
parent6d4c168ed494d1f4681a00062aab92baff50e94a (diff)
downloadpublic-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-xDocumentation/txt2pre4
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 &gt; for escape so our s!! to add href works.
 # there's probably a way to do this with only a single s!! ...
 $str =~ s!&gt;!\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!&gt;!g; # swap escapes back to &gt;
 
 print '<html><head>',