diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-10-04 14:30:27 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-10-04 14:30:27 -0400 |
commit | 85f28f7921df08d28280d5dde67c3a7d60f4f9dd (patch) | |
tree | 1f55a131ca3a1e1148b7e8d492aa832623a694c3 /gpscap.py | |
parent | 248c24de6729332e394b626b1930d1d52047d6af (diff) | |
download | gpsd-85f28f7921df08d28280d5dde67c3a7d60f4f9dd.tar.gz |
All pages claimed to be W3C valid actually are (again).
Diffstat (limited to 'gpscap.py')
-rw-r--r-- | gpscap.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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;' bgcolor='#CCCCCC'> + thead = """<table border='1' style='font-size:small;background-color:#CCCCCC'> <caption>Listing %s devices from %s vendors</caption> <tr> <th>Name</th> @@ -65,7 +65,7 @@ class GPSDictionary(ConfigParser.RawConfigParser): <th>Interface</th> <th>Tested with</th> <th>NMEA version</th> -<th width='50%%'>Notes</th> +<th style='width:50%%'>Notes</th> </tr> """ vhead1 = "<tr><td style='text-align:center;' colspan='7'><a href='%s'>%s</a></td></tr>\n" @@ -83,7 +83,7 @@ class GPSDictionary(ConfigParser.RawConfigParser): relevant.append(dev) relevant.sort() for dev in relevant: - rowcolor = "#FFFFFF" + rowcolor = "white" if self.get(dev, "packaging") == "OEM module": rowcolor = "LimeGreen" elif self.get(dev, "packaging") == "chipset": @@ -93,7 +93,7 @@ class GPSDictionary(ConfigParser.RawConfigParser): elif self.get(dev, "packaging") == "hansdfree": rowcolor = "DarkCyan" - ofp.write("<tr bgcolor='%s'>\n" % rowcolor) + ofp.write("<tr style='background-color:%s'>\n" % rowcolor) namefield = dev if self.has_option(dev, "techdoc"): namefield = "<a href='%s'>%s</a>" % (self.get(dev, "techdoc"), dev) |