잉여개발기 (SPDV) 6 лет назад
Родитель
Сommit
8d7b262bbe
1 измененных файлов с 1 добавлено и 1 удалено
  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']]
         
-        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)
+        data = redirect_re.sub('\n<ul><li>' + title + ' - <a href="' + tool.url_pas(main_link) + other_link + '">' + main_link + other_link + '</a></li></ul>\n', data, 1)
 
     no_toc_re = re.compile('\[(?:목차|toc)\((?:no)\)\]\n', re.I)
     toc_re = re.compile('\[(?:목차|toc)\]', re.I)