Przeglądaj źródła

테이블 세로 정렬 문법 추가

Surplus_Up (2DU) 6 lat temu
rodzic
commit
f04e9666e9
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      route/tool/set_mark/namumark.py

+ 6 - 2
route/tool/set_mark/namumark.py

@@ -84,9 +84,13 @@ def table_parser(data, cel_data, start_data, num = 0):
     else:
         cel = 'colspan="' + str(round(len(start_data) / 2)) + '"'
 
-    table_row = re.search("<\|((?:(?!>).)*)>", data)
+    table_row = re.search("<(^|v)?\|((?:(?!>).)*)>", data)
     if table_row:
-        row = 'rowspan="' + table_row.groups()[0] + '"'
+        table_row = table_row.groups()
+        if table_row[0]:
+            
+
+        row = 'rowspan="' + table_row[1] + '"'
 
     # <>