diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-01-21 00:32:45 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-01-21 00:32:45 +0000 |
commit | 32e63204b508642b48b7c680c48cfc256cb3ae8e (patch) | |
tree | 47e4ddbc98634109c2039d26051093d25cb24bd8 | |
parent | acdb6f81cd6fe8b7707c7d0f90779554750875d5 (diff) | |
download | gpsd-32e63204b508642b48b7c680c48cfc256cb3ae8e.tar.gz |
Give the compatibility table a useful caption.
-rw-r--r-- | gpscap.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 = [] |