summaryrefslogtreecommitdiff
path: root/gpscap.py
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-04-10 15:01:21 -0700
committerGary E. Miller <gem@rellim.com>2015-04-10 15:01:21 -0700
commit8b1860e2d0530bd25db07439640a09d1bea08c22 (patch)
tree3c6baa415a876a11aee8d88b7085009c1d0f65f0 /gpscap.py
parent0343cb0f3cede55ffc9dd73cbcbbe3268a8577c8 (diff)
downloadgpsd-8b1860e2d0530bd25db07439640a09d1bea08c22.tar.gz
The generated hardware.html is now valid html5.
Diffstat (limited to 'gpscap.py')
-rw-r--r--gpscap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpscap.py b/gpscap.py
index bb662777..140eb09d 100644
--- a/gpscap.py
+++ b/gpscap.py
@@ -56,7 +56,7 @@ class GPSDictionary(ConfigParser.RawConfigParser):
raise ConfigParser.Error("%s has invalid vendor" % section)
def HTMLDump(self, ofp):
- thead = """<table border='1' style='font-size:small;background-color:#CCCCCC'>
+ thead = """<table style='border:1px solid gray;font-size:small;background-color:#CCCCCC'>
<caption>Listing %s devices from %s vendors</caption>
<tr>
<th>Name</th>
@@ -69,8 +69,8 @@ class GPSDictionary(ConfigParser.RawConfigParser):
<th style='width:50%%'>Notes</th>
</tr>
"""
- vhead1 = "<tr><td style='text-align:center;' colspan='7'><a href='%s'>%s</a></td></tr>\n"
- vhead2 = "<tr><td style='text-align:center;' colspan='7'><a href='%s'>%s</a><br><p>%s</p></td></tr>\n"
+ vhead1 = "<tr><td style='text-align:center;' colspan='8'><a href='%s'>%s</a></td></tr>\n"
+ vhead2 = "<tr><td style='text-align:center;' colspan='8'><a href='%s'>%s</a><br><p>%s</p></td></tr>\n"
hotpluggables = ("pl2303", "CP2101")
ofp.write(thead % (len(self.devices), len(self.vendors)))
for vendor in self.vendors: