diff examples/trac/templates/about.html @ 48:06c642ba2b08

convert the result of expressions in attributes to strings so that values like ints are output correctly
author mgood
date Tue, 04 Jul 2006 04:49:22 +0000
parents 04bb078c6234
children 33c2702cf6da
line wrap: on
line diff
--- a/examples/trac/templates/about.html
+++ b/examples/trac/templates/about.html
@@ -41,7 +41,7 @@
             <div py:for="section in about.config" py:strip="">
             <tr py:for="idx,option in enumerate(section.options)">
               <th py:if="idx == 0" class="section"
-                  rowspan="${str(len(section.options))}">
+                  rowspan="${len(section.options)}">
                   ${section.name}</th>
               <td class="name">${option.name}</td>
               <td class="${option.valueclass}">${option.value}</td>
@@ -72,7 +72,7 @@
             </tr>
             <tr py:for="idx,extension_point in enumerate(plugin.extension_points)">
               <th py:if="idx == 0" class="xtnpts"
-                  rowspan="${str(len(plugin.extension_points))}">
+                  rowspan="${len(plugin.extension_points)}">
                 Extension points:
               </th>
               <td class="xtnpts">        
Copyright (C) 2012-2017 Edgewall Software