Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
Add thead, tfoot in all tables
I want to add thead, tfoot in all tables because this will repeat table header if the table go to a next page. Is this possible?
I use dw2pdf for export to pdf and for tables extab2.
Thanks in advance.
This has been requested. Add your vote to the feature request:
I tried to insert thead tag in all tables but without success. I tried to do this in dw2pdf/action.php and dw2pdf/mpdf/mpdf.php with following code:
$html = preg_replace('/<tbody>(\s)*<tr>(\s)*<th>/', "<thead><tr><th>", $html);
$html = preg_replace('/(<\/th>)(\s)*(<\/tr>)(\s)*(<tr>)(\s)*(<td>)/s', "$1\n$3\n</thead>\n<tbody>\n$5\n$7\n", $html);
May be somewhere there is a code that clears the <thead> tags.
Global DokuWiki Links