Skip to content

Commit 04ef761

Browse files
committed
add thead and tbody for compatibility with other plugins
1 parent cb51630 commit 04ef761

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

syntax/query.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,17 @@ public function renderResultTable($result, Doku_Renderer $R)
9898
}
9999

100100
$R->table_open();
101+
$R->tablethead_open();
101102
$R->tablerow_open();
102103
foreach (array_keys($result[0]) as $header) {
103104
$R->tableheader_open();
104105
$R->cdata($header);
105106
$R->tableheader_close();
106107
}
107108
$R->tablerow_close();
109+
$R->tablethead_close();
108110

111+
$R->tabletbody_open();
109112
foreach ($result as $row) {
110113
$R->tablerow_open();
111114
foreach ($row as $cell) {
@@ -115,6 +118,7 @@ public function renderResultTable($result, Doku_Renderer $R)
115118
}
116119
$R->tablerow_close();
117120
}
121+
$R->tabletbody_close();
118122
$R->table_close();
119123
}
120124

0 commit comments

Comments
 (0)