* Adjust code style.

This commit is contained in:
tianshujie98
2020-11-13 14:16:33 +08:00
parent a5eecec8aa
commit ec58e2b528
+2
View File
@@ -446,9 +446,11 @@ class doc extends control
{
$hyperdown = $this->app->loadClass('hyperdown');
$doc->content = $hyperdown->makeHtml($doc->content);
/* Add a newline attribute to the table. */
$doc->content = str_replace("<th>", "<th style='word-break: break-word;'>", $doc->content);
$doc->content = str_replace("<td>", "<td style='word-break: break-word;'>", $doc->content);
$doc->digest = $hyperdown->makeHtml($doc->digest);
}