Przeglądaj źródła

표 버그 수정

Surplus_Up (2DU) 7 lat temu
rodzic
commit
de816f14d5
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      set_mark/namu.py

+ 4 - 0
set_mark/namu.py

@@ -730,6 +730,8 @@ def namu(conn, data, title, main_num):
         else:
             break
 
+    data = re.sub('(?P<in>\n +\* (?:(?:(?!\|\|).)+))\|\|', '\g<in>\n ||', data)
+
     # 리스트 구현
     while 1:
         li = re.search('(\n(?:(?: *)\* ?(?:(?:(?!\n).)+)\n)+)', data)
@@ -754,6 +756,8 @@ def namu(conn, data, title, main_num):
         else:
             break
 
+    data = re.sub('<\/ul>\n \|\|', '</ul>||', data)
+
     # 들여쓰기 구현
     while 1:
         indent = re.search('\n( +)', data)