Browse Source

bgcolor만 지원

Surplus_Up (2DU) 7 năm trước cách đây
mục cha
commit
ea3d126980
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      set_mark/namu.py

+ 1 - 1
set_mark/namu.py

@@ -73,7 +73,7 @@ def table_parser(data, cel_data, start_data, num = 0):
     if table_bgcolor:
     if table_bgcolor:
         all_table += 'background: ' + table_bgcolor.groups()[0] + ';'
         all_table += 'background: ' + table_bgcolor.groups()[0] + ';'
         
         
-    bgcolor = re.search("<(?:bgcolor=)?(#(?:[0-9a-f-A-F]{3}){1,2}|\w+)>", data)
+    bgcolor = re.search("<bgcolor=(#(?:[0-9a-f-A-F]{3}){1,2}|\w+)>", data)
     if bgcolor:
     if bgcolor:
         cel_style += 'background: ' + bgcolor.groups()[0] + ';'
         cel_style += 'background: ' + bgcolor.groups()[0] + ';'