The colspan parameter in row_text now doesn't add an extra <td> but simply expands...
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 31 Jul 2006 23:47:38 +0000 (23:47 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 31 Jul 2006 23:47:38 +0000 (23:47 +0000)
dev/changes.txt
printer.php

index 2edb1069dff0fb5e27395b24b4f62350d04b5b78..4be5264a0e83810dce53c96fd80176a259642bc1 100644 (file)
@@ -7,6 +7,7 @@
 - Added a parameter in Mail->send() to optionally clear the to list after sending [mail.php]
 - Added a parameter in API->delete() to optionally stop the running of API->set_existing() [api.php]
 - Changed some of the API error messages to reflect what actually caused the error [api.php]
+- Made the Printer->row_text() colspan parameter work more normally [printer.php]
 
 2.0.0
 ===============
index 97b2e19cacfe02805f81fb06ca279d26e187ca3e..355e7d93e78c8174cf1dbcd797e54da39ad05d21 100644 (file)
@@ -729,12 +729,7 @@ JS;
                
                echo "<tr valign=\"$valign\">";
                echo "\n\t<td class=\"$row_class\">$label</td>";
-               echo "\n\t<td class=\"$row_class\">$value</td>";
-               
-               if ($colspan > 2)
-               {
-                       echo "\n\t<td class=\"$row_class\" colspan=\"" . $colspan - 2 . "\">&nbsp;</td>";
-               }
+               echo "\n\t<td class=\"$row_class\" colspan=\"" . ($colspan - 1) . "\">$value</td>";
                
                echo "\n</tr>\n";
        }