From: Zooko O'Whielacronx Date: Mon, 8 Oct 2012 18:13:33 +0000 (-0600) Subject: add alternating grey-background to make it easier to scan across the table left to... X-Git-Tag: allmydata-tahoe-1.10a1~51 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/flags/module-simplejson.tests.html?a=commitdiff_plain;h=52571f469ed6e79d9a7fe491f55ef177f5cce7ee;p=tahoe-lafs%2Ftahoe-lafs.git add alternating grey-background to make it easier to scan across the table left to right --- diff --git a/misc/build_helpers/gen-package-table.py b/misc/build_helpers/gen-package-table.py index b2171ff3..99a43ed0 100644 --- a/misc/build_helpers/gen-package-table.py +++ b/misc/build_helpers/gen-package-table.py @@ -66,6 +66,9 @@ platform_independent_pkgs = pkgs - platform_dependent_pkgs width = 100 / (len(platform_independent_pkgs) + 1) +greybgstyle = '; background-color: #E0E0E0' +nobgstyle = '' + print '' print '' print '' @@ -78,6 +81,7 @@ print '

See ' @@ -89,9 +93,16 @@ for pyver in reversed(sorted(python_versions)): first = True for platform in sorted(matrix[pyver]): + if greybackground: + bgstyle = greybgstyle + else: + bgstyle = nobgstyle + greybackground = not greybackground row_files = sorted(matrix[pyver][platform]) - style1 = first and 'border-top: 2px solid #000000; background-color: #FFFFF0' or 'background-color: #FFFFF0' + style1 = first and 'border-top: 2px solid #000000' or '' + style1 += bgstyle style2 = first and 'border-top: 2px solid #000000' or '' + style2 += bgstyle print ' ' print '  %s ' % (style1, platform,) for pkg in sorted(platform_dependent_pkgs):