[Pcsclite-cvs-commit] r6262 - /website/matrix.py

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Apr 6 13:36:01 UTC 2012


Author: rousseau
Date: Fri Apr  6 13:36:00 2012
New Revision: 6262

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6262
Log:
Use thead and tbody

This should allow the header to be fixed when the rest of the table
scrolls. But it does not work yet.

Modified:
    website/matrix.py

Modified: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=6262&op=diff
==============================================================================
--- website/matrix.py (original)
+++ website/matrix.py Fri Apr  6 13:36:00 2012
@@ -438,7 +438,7 @@
     else:
         # odd line number
         color = reader['section'] + '_odd'
-    file_desc.write('<tr class="%s">' % color)
+    file_desc.write('<tbody><tr class="%s">' % color)
 
     file_desc.write("<td><a name=\"%d\" href=\"#%d\">%d</a></td>" % (num,
         num, num))
@@ -453,7 +453,7 @@
             file_desc.write("<td>%s</td>" % ", ".join(reader[field]))
         else:
             file_desc.write("<td>%s</td>" % html_escape(reader.get(field, "")))
-    file_desc.write('</tr>\n')
+    file_desc.write('</tr></tbody>\n')
 
 
 def generate_table(readers, field, index, fields):
@@ -529,12 +529,12 @@
 
     file_desc.write('<table border="1" summary="">\n')
 
-    file_desc.write('<tr>')
+    file_desc.write('<thead><tr>')
     file_desc.write("<th>#</th>")
     for field in fields:
         file_desc.write("<th><a href='%s'>%s</a></th>" % (field +
                 ".html", field))
-    file_desc.write('</tr>\n')
+    file_desc.write('</tr></thead>\n')
 
     num = 0
     for reader in index:




More information about the Pcsclite-cvs-commit mailing list