summaryrefslogtreecommitdiff
path: root/gpscap.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-01-21 00:32:45 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-01-21 00:32:45 +0000
commit32e63204b508642b48b7c680c48cfc256cb3ae8e (patch)
tree47e4ddbc98634109c2039d26051093d25cb24bd8 /gpscap.py
parentacdb6f81cd6fe8b7707c7d0f90779554750875d5 (diff)
downloadgpsd-32e63204b508642b48b7c680c48cfc256cb3ae8e.tar.gz
Give the compatibility table a useful caption.
Diffstat (limited to 'gpscap.py')
-rw-r--r--gpscap.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gpscap.py b/gpscap.py
index 11ea061e..a86cca74 100644
--- a/gpscap.py
+++ b/gpscap.py
@@ -55,6 +55,7 @@ class GPSDictionary(ConfigParser.RawConfigParser):
def HTMLDump(self, ofp):
thead = """<table border='1' style='font-size:small;' bgcolor='#CCCCCC'>
+<caption>Listing %s devices from %s vendors</caption>
<tr>
<th>Name</th>
<th>Packaging</th>
@@ -62,11 +63,11 @@ class GPSDictionary(ConfigParser.RawConfigParser):
<th>Interface</th>
<th>Tested with</th>
<th>NMEA version</th>
-<th width='50%'>Notes</th>
+<th width='50%%'>Notes</th>
</tr>
"""
vhead = "<tr><td style='text-align:center;' colspan='7'><a href='%s'>%s</a></td></tr>\n"
- ofp.write(thead)
+ ofp.write(thead % (len(self.devices), len(self.vendors)))
for vendor in self.vendors:
ofp.write(vhead % (self.get(vendor, "vendor_site"), vendor))
relevant = []