Explorar el Código

버그 수정 2

잉여개발기 (SPDV) hace 6 años
padre
commit
dcc49c2030
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      route/tool/set_mark/namu.py

+ 1 - 1
route/tool/set_mark/namu.py

@@ -513,7 +513,7 @@ def namu(conn, data, title, main_num):
         
         
         backlink += [[title, main_link + other_link, 'redirect']]
         backlink += [[title, main_link + other_link, 'redirect']]
         
         
-        data = redirect_re.sub('\n * ' + title + ' - [[' + main_link + other_link + ']]\n', data, 1)
+        data = redirect_re.sub('<br><ul><li>' + title + ' - <a href="' + tool.url_pas(main_link) + other_link + '">' + main_link + other_link + '</a></li></ul><br>', data, 1)
 
 
     no_toc_re = re.compile('\[(?:목차|toc)\((?:no)\)\]\n', re.I)
     no_toc_re = re.compile('\[(?:목차|toc)\((?:no)\)\]\n', re.I)
     toc_re = re.compile('\[(?:목차|toc)\]', re.I)
     toc_re = re.compile('\[(?:목차|toc)\]', re.I)