2
0
ect (or 2du) 8 жил өмнө
parent
commit
86fe7967f8
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -1437,7 +1437,7 @@ def edit(name = None):
             if request.args.get('section', None):
                 test_data = '\n' + re.sub('\r\n', '\n', new[0][0]) + '\n'   
 
-                section_data = re.findall('((?:={1,6}) ?(?:(?:(?!=).)+) ?={1,6}\\n(?:(?:(?!(?:={1,6}) ?(?:(?:(?!=).)+) ?={1,6}\\n).)*))', test_data)
+                section_data = re.findall('((?:={1,6}) ?(?:(?:(?!=).)+) ?={1,6}\n(?:(?:(?!(?:={1,6}) ?(?:(?:(?!=).)+) ?={1,6}\n).)*\n*)*)', test_data)
                 data = section_data[int(request.args.get('section', None)) - 1]
             else:
                 data = new[0][0]