[med-svn] r1388 - trunk/community/infrastructure/test

tille at alioth.debian.org tille at alioth.debian.org
Fri Feb 15 22:24:39 UTC 2008


Author: tille
Date: 2008-02-15 22:24:39 +0000 (Fri, 15 Feb 2008)
New Revision: 1388

Modified:
   trunk/community/infrastructure/test/cddtasktools.py
Log:
Enable ~ in URLs and mark ftp: strings asl links as well


Modified: trunk/community/infrastructure/test/cddtasktools.py
===================================================================
--- trunk/community/infrastructure/test/cddtasktools.py	2008-02-15 22:09:18 UTC (rev 1387)
+++ trunk/community/infrastructure/test/cddtasktools.py	2008-02-15 22:24:39 UTC (rev 1388)
@@ -59,7 +59,7 @@
         else:
             # This is to sanitize output for XHTML pages. --David
             line = line.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;") + ' \n'
-            LongDesc += re.sub('(http://[-./\w?=]+)', '<a href="\\1">\\1</a>', line)
+            LongDesc += re.sub('([fh]t?tp://[-./\w?=~]+)', '<a href="\\1">\\1</a>', line)
     return (ShortDesc, LongDesc)
 
 




More information about the debian-med-commit mailing list