Skip to content
Snippets Groups Projects
Commit 5aad4829 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #48 from greezybacon/issue/html2text-empty-tables


Render empty tables as an empty string

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 8ff5dd34 5fdab097
No related branches found
No related tags found
No related merge requests found
......@@ -588,6 +588,9 @@ class HtmlTable extends HtmlBlockElement {
foreach ($rows as $r)
$cols = max($cols, count($r));
if (!$cols)
return '';
# Find the largest cells in all columns
$weights = $mins = array_fill(0, $cols, 0);
foreach ($rows as $r) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment