- function printTableHtml (&$t) {
- $r = "\n";
- $r .= str_repeat( '<dl><dd>' , $t['indent'] );
- $r .= '<table';
- $r .= isset($t['attributes']) ? $t['attributes'] : '';
- $r .= '>';
- unset($t['attributes']);
-
- if ( isset($t['caption']) ) {
- $r .= "\n<caption";
- $r .= isset($t['caption']['attributes']) ? $t['caption']['attributes'] : '';
- $r .= '>';
- $r .= $t['caption']['content'];
- $r .= '</caption>';
- }
- $last_section = '';
+ function generateTableHTML ( &$table ) {
+ $return = "\n";
+ $return .= str_repeat( '<dl><dd>' , $table['indent'] );
+ $return .= '<table';
+ $return .= isset( $table['attributes'] ) ? $table['attributes'] : '';
+ $return .= '>';
+ unset( $table['attributes'] );
+
+ if ( isset( $table['caption'] ) ) {
+ $return .= "\n<caption";
+ $return .= isset( $table['caption']['attributes'] ) ? $table['caption']['attributes'] : '';
+ $return .= '>';
+ $return .= $table['caption']['content'];
+ $return .= '</caption>';
+ }
+ $lastSection = '';