OSDN Git Service

add include system.
authorhylom <hylom@users.sourceforge.jp>
Thu, 21 May 2009 10:42:39 +0000 (19:42 +0900)
committerhylom <hylom@users.sourceforge.jp>
Thu, 21 May 2009 10:42:39 +0000 (19:42 +0900)
markupper.py

index e21fd2a..6f7d51c 100755 (executable)
@@ -263,14 +263,14 @@ class Markupper(object):
 
     def _list(self, line):
         try:
-            str_title = re.search("^☆(リスト.*)$", line).group(1)
+            str_title = re.search(ur"^☆(リスト.*)$", line).group(1)
         except AttributeError:
             str_title = ""
         print "<p><b>%s</b></p>" % (str_title)
         print self._list_start()
 
         for line in self.input_iter:
-            line = line.strip()
+            line = line.strip("\n\r")
             line = line.replace("&", "&amp;")
             line = line.replace("<", "&lt;")
             line = line.replace(">", "&gt;")