OSDN Git Service

tiny fix for markupper.py
authorhylom <hylom@users.sourceforge.jp>
Tue, 28 Jul 2009 04:02:44 +0000 (13:02 +0900)
committerhylom <hylom@users.sourceforge.jp>
Tue, 28 Jul 2009 04:02:44 +0000 (13:02 +0900)
markupper.py

index 9e974df..d839896 100755 (executable)
@@ -47,7 +47,7 @@ class Markupper(object):
         Add key and value to index.
 
         @param key:
-        @type key:
+         @type key:
 
         @param val:
         @key val:
@@ -511,7 +511,7 @@ class Markupper(object):
         if not os.path.isfile(file_s):
             file_s = file
 
-        alt = re.sub(r"""<[A-Za-z0-9 "'/]+>""", "", alt)
+        alt = re.sub(r"""<[A-Za-z0-9!/]+.*?>""", "", alt)
 
         return """<a href="%s">
   <img src="%s" alt="%s">