2DU 8 лет назад
Родитель
Сommit
7afaa9b9a5
2 измененных файлов с 2 добавлено и 5 удалено
  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])
         rows = curs.fetchall()
         if(rows):
-            
-
             leng = leng_check(len(request.forms.otent), len(content))
             if(num):
                 content = rows[0][0].replace(request.forms.otent, content)
@@ -1402,7 +1400,6 @@ def preview(name = None, num = None):
     else:
         action = ''
 
-
     return(
         html_minify(
             template('index', 

+ 2 - 2
mark.py

@@ -222,7 +222,7 @@ def html_pas(data):
     return(data)
     
 def mid_pas(data, fol_num, include, in_c):
-    com = re.compile("{{{((?:(?!{{|}}).)*)}}}", re.DOTALL)
+    com = re.compile("{{{((?:(?!{{{|}}}).)*)}}}", re.DOTALL)
     while(1):
         is_it = com.search(data)
         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 = 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)
 
             html_a = re.compile("^#!html\s(.*)$", re.DOTALL)