bagder: curl-www/docs txt2plain.pl,1.1,1.2
| Newsgroups | gmane.comp.web.curl.www.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/curl/curl-www/docs
In directory labb:/tmp/cvs-serv31582
Modified Files:
txt2plain.pl
Log Message:
convert # on first column
Index: txt2plain.pl
===================================================================
RCS file: /cvsroot/curl/curl-www/docs/txt2plain.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- txt2plain.pl 4 Nov 2005 08:47:21 -0000 1.1
+++ txt2plain.pl 4 Nov 2005 09:00:46 -0000 1.2
@@ -15,6 +15,9 @@
# cpp to barf
$_ =~ s/\/\*/&\#47;*/g;
+ # convert ^#
+ $_ =~ s:^ *\#:&\#35:;
+
# convert URLs to <a href>
$_ =~ s/((http|ftp):\/\/([a-zA-Z0-9.=\/_%?-]*[0-9A-Za-z\/]))/<a href=\"$2:\/\/$3\">$1<\/a>/g;