2
0
Эх сурвалжийг харах

각주 미아 버그 수정

ect (or 2du) 8 жил өмнө
parent
commit
b780a80636
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      set_mark/indent.py

+ 2 - 2
set_mark/indent.py

@@ -8,7 +8,7 @@ def indent(data):
             end = str(result[0])
 
             while(1):
-                isspace = re.search("( *)\*\s([^\n]*)", end)
+                isspace = re.search("\n( *)\* ([^\n]*)", end)
                 if(isspace):
                     spacebar = isspace.groups()
                     if(len(spacebar[0]) == 0):
@@ -16,7 +16,7 @@ def indent(data):
                     else:
                         up = len(spacebar[0]) * 20
 
-                    end = re.sub("( *)\*\s([^\n]*)", "<li style='margin-left:" + str(up) + "px'>" + spacebar[1] + "</li>", end, 1)
+                    end = re.sub("\n( *)\* ([^\n]*)", "<li style='margin-left:" + str(up) + "px'>" + spacebar[1] + "</li>", end, 1)
                 else:
                     break