projects
/
invirt/packages/invirt-web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix format string usage.
[invirt/packages/invirt-web.git]
/
code
/
templates
/
functions.mako
diff --git
a/code/templates/functions.mako
b/code/templates/functions.mako
index
a72648a
..
4f23635
100644
(file)
--- a/
code/templates/functions.mako
+++ b/
code/templates/functions.mako
@@
-43,6
+43,9
@@
${databaseList(sorted(database.Autoinstall.query(), key=lambda x: x.description)
<%!
def jquote(string):
return "'" + string.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n') + "'"
+
+def nl2br(string):
+ return string.replace('\n', '<br/>')
%>
<%def name="helppopup(subj)">