# HG changeset patch # User Matti Hamalainen # Date 1446744131 -7200 # Node ID 2a259e24335012194a354dc26ecb161c03a104a2 # Parent 22b6442d5cb3b9336d8747e68e6ba415b3d23f3b Don't use a HTML table for the votekeys. diff -r 22b6442d5cb3 -r 2a259e243350 examples/css/hardcopy.css --- a/examples/css/hardcopy.css Thu Nov 05 19:11:40 2015 +0200 +++ b/examples/css/hardcopy.css Thu Nov 05 19:22:11 2015 +0200 @@ -2,22 +2,23 @@ font-family: monospace; font-size: 12pt; color: black; - margin: 0px; - padding: 0px; + margin: 0; + padding: 0; } -table.votekeys { - margin: 0px; - padding: 0px; +div.votekeys { + margin: 0; + padding: 0; } -table.votekeys td { +div.votekey { + display: inline-block; text-align: center; - border-right: 1pt dashed black; - border-bottom: 1pt dashed black; - padding: 10pt; + border: 1pt dashed black; + padding: 0.75em; + margin: 0; } -table.votekeys span.keyid { +div.votekey span.keyid { font-weight: bold; } diff -r 22b6442d5cb3 -r 2a259e243350 print.php --- a/print.php Thu Nov 05 19:11:40 2015 +0200 +++ b/print.php Thu Nov 05 19:22:11 2015 +0200 @@ -88,29 +88,17 @@ { cmPrintPageHeader("Votekeys"); $keyLen = stGetSetting("userKeyLength"); - echo "\n"; - $index = 0; + echo "
\n"; foreach ($res as $item) { - if ($index == 0) - echo "
\n"; - // This funny code is to ensure that the cells are of uniform width - printf("\n", + printf("
%03d : ". + "%s
\n", $item["id"], str_repeat(" ", $keyLen - strlen($item["key"])).$item["key"]); - - if ($index++ >= 5) - { - echo "\n"; - $index = 0; - } } - if ($index > 0) - echo "\n"; - echo "
%03d : ". - "%s
\n"; + echo "\n"; cmPrintPageFooter(); } break;