Explorar o código

표 버그 수정

Surplus_Up (2DU) %!s(int64=6) %!d(string=hai) anos
pai
achega
4d29c9ed2b
Modificáronse 2 ficheiros con 9 adicións e 3 borrados
  1. 8 2
      route/tool/set_mark/namu.py
  2. 1 1
      version.json

+ 8 - 2
route/tool/set_mark/namu.py

@@ -79,11 +79,17 @@ def table_parser(data, cel_data, start_data, num = 0):
         
     cel_width = re.search("<width=((?:(?!>).)*)>", data)
     if cel_width:
-        cel_style += 'width: ' + cel_width.groups()[0] + 'px;'
+        if re.search('^[0-9]+$', cel_width.groups()[0]):
+            cel_style += 'width: ' + cel_width.groups()[0] + 'px;'
+        else:
+            cel_style += 'width: ' + cel_width.groups()[0] + ';'
 
     cel_height = re.search("<height=((?:(?!>).)*)>", data)
     if cel_height:
-        cel_style += 'height: ' + cel_height.groups()[0] + 'px;'
+        if re.search('^[0-9]+$', cel_height.groups()[0]):
+            cel_style += 'height: ' + cel_height.groups()[0] + 'px;'
+        else:
+            cel_style += 'height: ' + cel_height.groups()[0] + ';'
         
     text_right = re.search("<\)>", data)
     text_center = re.search("<:>", data)

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "master" : {
-        "r_ver" : "v3.1.3-master-19",
+        "r_ver" : "v3.1.3-master-20",
         "c_ver" : "400003",
         "s_ver" : "2"
     }, "stable" : {