فهرست منبع

너무 길어서 대충 끊음

ect (or 2du) 8 سال پیش
والد
کامیت
dcc5cda452
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      set_mark/toc_pas.py

+ 3 - 1
set_mark/toc_pas.py

@@ -70,7 +70,9 @@ def toc_pas(data, title, num, toc_y):
             if(toc_y == 1):
                 edit_d = ' <span style="font-size: 11px;">[<a href="/edit/' + url_pas(title) + '/section/' + str(i[0]) + '">편집</a>]</span>'
 
-            data = re.sub('(={1,6})\s?([^=]*)\s?(?:={1,6})(?:\s+)?\n', '<tablenobr><h' + str(wiki) + ' id="' + c + '" ' + margin + '><a href="#toc" id="s-' + toc + '">' + toc + '.<span style="margin-left: 5px;"></span></a> ' + d + edit_d + '</h' + str(wiki) + '><hr id="under_bar" style="margin-top: -5px;">\n', data, 1)
+            data = re.sub('(={1,6})\s?([^=]*)\s?(?:={1,6})(?:\s+)?\n', '<tablenobr><h' + str(wiki) + ' id="' + c + '" ' + margin + '><a href="#toc" id="s-' + toc + '">' \
+                                                                         + toc + '.<span style="margin-left: 5px;"></span></a> ' \
+                                                                         + d + edit_d + '</h' + str(wiki) + '><hr id="under_bar" style="margin-top: -5px;">\n', data, 1)
         else:
             rtoc += '</div>'