[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] Make tablesorter tables appear in mPDF output in 29.x
"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <697ba6b4e4a23_3b183c609401a@gitlab-sidekiq-low-urgency-cpu-bound-v2-86649c4bfc-cvrvb.mail> |
Jonny Bradley pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki Commits: 2020134f by Jonny Bradley at 2026-01-29T18:19:31+00:00 Make tablesorter tables appear in mPDF output in 29.x --- * Make tablesorter tables appear in mPDF output (and improve mpdf_debug_output) --- * [FIX] pdf: Move the mpdf_debug_output view to temp/public and add a note on how to easily remove it * [FIX] pdf: Set php tidy `show-body-only` option to `auto` which makes tablesorter tables work in mPDF output (not sure why) See merge request tikiwiki/tiki!9431 (cherry picked from commit 075da344d0b5b876ad5e53c7139764081460a02b) c5f31727 [FIX] pdf: Set php tidy `show-body-only` option to `auto` which makes... 6b452708 [FIX] pdf: Move the mpdf_debug_output view to temp/public and add a note on how to easily remove it Co-authored-by: Jonny Bradley <[email protected]> See merge request tikiwiki/tiki!9437 - - - - - 2 changed files: - lib/pdflib.php - lib/prefs/print.php Changes: ===================================== lib/pdflib.php ===================================== @@ -787,7 +787,7 @@ class PdfGenerator fwrite($tempFile, ($pagesTotal * 30)); if ($prefs['print_pdf_mpdf_debug'] === 'y') { - file_put_contents('temp/mpdf_debug_output.html', $debugOutput); + file_put_contents('temp/public/mpdf_debug_output.html', $debugOutput); } return $mpdf->Output('', 'S'); // Return as a string @@ -1778,7 +1778,7 @@ function cleanHtml($html, $config = null, $encoding = 'utf8') 'clean' => true, 'output-xhtml' => false, 'merge-divs' => false, - 'show-body-only' => false, + 'show-body-only' => 'auto', 'new-blocklevel-tags' => 'pdfsettings pdfpage pdfinclude article aside audio bdi canvas details dialog figcaption figure footer header hgroup main menu menuitem nav section source summary template track video', 'new-empty-tags' => 'embed keygen source track wbr', 'new-inline-tags' => 'svg audio command datalist embed mark menuitem meter output progress source time video wbr', ===================================== lib/prefs/print.php ===================================== @@ -327,7 +327,8 @@ function prefs_print_list() 'name' => tra('Debug mPDF output'), 'description' => tra('Saves a copy of the html sent to mPDF in the temp directory'), 'warning' => tra('Does not respect permissions, do not use with production data.'), - 'view' => 'temp/mpdf_debug_output.html', + 'hint' => tra('Clear the public cache to remove this and other temporary files.'), + 'view' => 'temp/public/mpdf_debug_output.html', 'type' => 'flag', 'tags' => ['advanced'], 'default' => 'n', View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/2020134fa3d7ec51c4c92fedf70d326705225d4d -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/2020134fa3d7ec51c4c92fedf70d326705225d4d You're receiving this email because of your account on gitlab.com. _______________________________________________ TikiWiki-cvs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs