This website works better with JavaScript.
首頁
說明
登入
ben
/
copyvios
镜像来自
https://github.com/earwig/copyvios
關註
1
收藏
1
複製
0
程式碼
版本發佈
0
Activity
瀏覽代碼
Use json.dumps for the string handling instead.
pull/24/head
Ben Kurtovic
10 年之前
父節點
9b07a5e9dc
當前提交
b2db78f021
共有
1 個文件被更改
,包括
4 次插入
和
3 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-3
templates/api.mako
+ 4
- 3
templates/api.mako
查看文件
@@ -1,3 +1,6 @@
<%!
from json import dumps
%>\
<%def name="do_indent(size)">
<br />
% for i in xrange(size):
@@ -21,10 +24,8 @@
% endfor
${do_indent(indent)}
]
% elif isinstance(obj, type("").__bases__[0]):
"${obj | h}"
% else:
${obj | h}
${dumps(obj) | h}
% endif
</%def>\
<!DOCTYPE html>
Write
Preview
Loading…
取消
儲存