Procházet zdrojové kódy

실수로 알맹이 빼먹음

Surplus_Up (2DU) před 6 roky
rodič
revize
72bbac51ae
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 5 2
      route/tool/set_mark/namumark.py

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

@@ -84,11 +84,14 @@ def table_parser(data, cel_data, start_data, num = 0):
     else:
         cel = 'colspan="' + str(round(len(start_data) / 2)) + '"'
 
-    table_row = re.search("<(^|v)?\|((?:(?!>).)*)>", data)
+    table_row = re.search("<(\^|v)?\|((?:(?!>).)*)>", data)
     if table_row:
         table_row = table_row.groups()
         if table_row[0]:
-            
+            if table_row[0] == '^':
+                cel_style += 'vertical-align: top;'
+            elif table_row[0] == 'v':
+                cel_style += 'vertical-align: bottom;'
 
         row = 'rowspan="' + table_row[1] + '"'