This website works better with JavaScript.
Home
Help
Sign In
ben
/
copyvios
mirror of
https://github.com/earwig/copyvios
Watch
1
Star
1
Fork
0
Code
Releases
0
Activity
Browse Source
Use json.dumps for the string handling instead.
pull/24/head
Ben Kurtovic
10 years ago
parent
9b07a5e9dc
commit
b2db78f021
1 changed files
with
4 additions
and
3 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-3
templates/api.mako
+ 4
- 3
templates/api.mako
View File
@@ -1,3 +1,6 @@
<%!
from json import dumps
%>\
<%def name="do_indent(size)">
<%def name="do_indent(size)">
<br />
<br />
% for i in xrange(size):
% for i in xrange(size):
@@ -21,10 +24,8 @@
% endfor
% endfor
${do_indent(indent)}
${do_indent(indent)}
]
]
% elif isinstance(obj, type("").__bases__[0]):
"${obj | h}"
% else:
% else:
${obj | h}
${dumps(obj) | h}
% endif
% endif
</%def>\
</%def>\
<!DOCTYPE html>
<!DOCTYPE html>
Write
Preview
Loading…
Cancel
Save