Changeset 2682 for package_branches/invirt-web
- Timestamp:
- Dec 20, 2009, 9:45:05 PM (15 years ago)
- Location:
- package_branches/invirt-web/cherrypy-rebased/code/templates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/templates/functions.mako
r2672 r2682 44 44 def jquote(string): 45 45 return "'" + string.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n') + "'" 46 47 def nl2br(string): 48 return string.replace('\n', '<br/>') 46 49 %> 47 50 -
package_branches/invirt-web/cherrypy-rebased/code/templates/list.mako
r2678 r2682 121 121 </tr> 122 122 <tr> 123 <td colspan="7" style="padding-left: 1em; color: #666">${machine.description }</td>123 <td colspan="7" style="padding-left: 1em; color: #666">${machine.description|self.fn.module.nl2br}</td> 124 124 </tr> 125 125 </%def>
Note: See TracChangeset
for help on using the changeset viewer.