]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/txt2pre
README: document NNTP access
[public-inbox.git] / Documentation / txt2pre
index acc6ca94bb484a42ee57f5d43aaead53f81d8600..ef6a4f3557395825d05fc5818ba56696367ec40e 100755 (executable)
@@ -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!&gt;!g; # swap escapes back to &gt;
 
 print '<html><head>',