Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea07f27

Browse files
committed
setup_column_alignments(): Adding valign=baseline to the <td> tag
makes the alignment work on Navigator as well as IE. Uglier HTML, but it looks right.
1 parent 250ba78 commit ea07f27

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/perl/python.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,8 @@ sub setup_column_alignments{
808808
local($_) = @_;
809809
my($a1,$a2,$a3,$a4) = split(/[|]/,$_);
810810
my($th1,$th2,$th3,$th4) = ('<th>', '<th>', '<th>', '<th>');
811-
$col_aligns[0] = (($a1 eq 'c') ? '<td align=center>' : '<td>');
811+
$col_aligns[0] = (($a1 eq 'c') ? '<td align=center valign=baseline>'
812+
: '<td valign=baseline>');
812813
$col_aligns[1] = (($a2 eq 'c') ? '<td align=center>' : '<td>');
813814
$col_aligns[2] = (($a3 eq 'c') ? '<td align=center>' : '<td>');
814815
$col_aligns[3] = (($a4 eq 'c') ? '<td align=center>' : '<td>');

0 commit comments

Comments
 (0)