Răsfoiți Sursa

버그 수정

2DU 8 ani în urmă
părinte
comite
7afaa9b9a5
2 a modificat fișierele cu 2 adăugiri și 5 ștergeri
  1. 0 3
      app.py
  2. 2 2
      mark.py

+ 0 - 3
app.py

@@ -1297,8 +1297,6 @@ def edit(name = None, num = None):
         curs.execute("select data from data where title = ?", [name])
         curs.execute("select data from data where title = ?", [name])
         rows = curs.fetchall()
         rows = curs.fetchall()
         if(rows):
         if(rows):
-            
-
             leng = leng_check(len(request.forms.otent), len(content))
             leng = leng_check(len(request.forms.otent), len(content))
             if(num):
             if(num):
                 content = rows[0][0].replace(request.forms.otent, content)
                 content = rows[0][0].replace(request.forms.otent, content)
@@ -1402,7 +1400,6 @@ def preview(name = None, num = None):
     else:
     else:
         action = ''
         action = ''
 
 
-
     return(
     return(
         html_minify(
         html_minify(
             template('index', 
             template('index', 

+ 2 - 2
mark.py

@@ -222,7 +222,7 @@ def html_pas(data):
     return(data)
     return(data)
     
     
 def mid_pas(data, fol_num, include, in_c):
 def mid_pas(data, fol_num, include, in_c):
-    com = re.compile("{{{((?:(?!{{|}}).)*)}}}", re.DOTALL)
+    com = re.compile("{{{((?:(?!{{{|}}}).)*)}}}", re.DOTALL)
     while(1):
     while(1):
         is_it = com.search(data)
         is_it = com.search(data)
         if(is_it):
         if(is_it):
@@ -255,7 +255,7 @@ def mid_pas(data, fol_num, include, in_c):
             include_out_a = re.compile("^#!noin\s(.*)$", re.DOTALL)
             include_out_a = re.compile("^#!noin\s(.*)$", re.DOTALL)
             include_out = include_out_a.search(it_d)
             include_out = include_out_a.search(it_d)
 
 
-            div_a = re.compile("^#!wiki\sstyle=(?:"|')((?:(?!"|').)*)(?:"|')\r\n(.*)$", re.DOTALL)
+            div_a = re.compile("^#!wiki\sstyle=(?:"|')((?:(?!"|').)*)(?:"|')\r\n(.*)$", re.DOTALL)
             div = div_a.search(it_d)
             div = div_a.search(it_d)
 
 
             html_a = re.compile("^#!html\s(.*)$", re.DOTALL)
             html_a = re.compile("^#!html\s(.*)$", re.DOTALL)