weblib: Fix typo in print_table() which was causing invalid <th> tag

MDL-11506
This commit is contained in:
fmarier
2007-12-07 04:59:32 +00:00
parent 8353edcdf1
commit ec7125dc19
+1 -3
View File
@@ -4594,9 +4594,7 @@ function print_table($table, $return=false) {
$align[$key] = '';
}
$output .= '<th class="header c'.$key.'" scope="col">'. $heading .'</th>';
// commenting the following code out as <th style does not validate MDL-7861
//$output .= '<th sytle="vertical-align:top;'. $align[$key].$size[$key] .';white-space:nowrap;" class="header c'.$key.'" scope="col">'. $heading .'</th>';
$output .= '<th style="vertical-align:top;'. $align[$key].$size[$key] .';white-space:nowrap;" class="header c'.$key.'" scope="col">'. $heading .'</th>';
}
$output .= '</tr>'."\n";
}