Explorar o código

diff 제목 변경

2DU %!s(int64=9) %!d(string=hai) anos
pai
achega
2bcc11ba4e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -2480,7 +2480,7 @@ def diff(name = None, a = None, b = None):
             enddata = re.sub('\n', '<br>', enddata)
             sm = difflib.SequenceMatcher(None, indata, enddata)
             c = show_diff(sm)
-            return render_template('index.html', title = 'Diff', logo = data['name'], data = c)
+            return render_template('index.html', title = name + ' <sub>Diff</sub>', logo = data['name'], data = c)
         else:
             return render_template('index.html', title = 'Diff 오류', logo = data['name'], data = '<a href="/w/' + name + '">이 리비전이나 문서가 없습니다.</a>')
     else: