소스 검색

Merge pull request #322 from 2DU/master

Master
ect (or 2du) 8 년 전
부모
커밋
2e7a5b83a4
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 2
      set_mark/toc_pas.py
  2. 1 1
      views/acme/index.tpl

+ 4 - 2
set_mark/toc_pas.py

@@ -68,9 +68,11 @@ def toc_pas(data, title, num, toc_y):
 
             edit_d = ''
             if(toc_y == 1):
-                edit_d = ' <span style="font-size:11px;">[<a href="/edit/' + url_pas(title) + '/section/' + str(i[0]) + '">편집</a>]</span>'
+                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 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>'
             

+ 1 - 1
views/acme/index.tpl

@@ -143,7 +143,7 @@
                                             % end
                                             % i += 1
                                         % end
-                                        % end
+                                    % end
                                 </li>
                             </ol>
                         </div>