When calling theme_table with an empty rows array but with an 'empty' text set, it will automatically create a row for that empty text. However, the header is already generated before that row is added and thus doesn't use thead because it assumes there is no tbody. The attached patch just reverses the order so that the header properly uses thead when there is an empty row.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 720202.patch | 1.87 KB | naxoc |
| table_thead.patch | 861 bytes | kkaefer |
Comments
Comment #1
effulgentsia commentedMakes sense. But let's make sure it stays fixed by having a test.
Comment #2
naxoc commentedWrote a small test for this
Comment #3
effulgentsia commentedThanks!
Comment #4
dries commentedCommitted to CVS HEAD. Thanks.