1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Display newlines in column comments (bug #573)

This commit is contained in:
Jakub Vrana
2018-01-22 21:03:48 +01:00
parent c789c147b7
commit 43ccfcef8f
5 changed files with 5 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ class AdminerTableStructure {
* @return bool
*/
function tableStructurePrint($fields) {
echo "<table cellspacing='0'>\n";
echo "<table cellspacing='0' class='nowrap'>\n";
echo "<thead><tr><th>" . lang('Column') . "<th>" . lang('Type') . "<th>" . lang('Nullable') . "<th>" . lang('Default') . (support("comment") ? "<th>" . lang('Comment') : "") . "</thead>\n";
foreach ($fields as $field) {
echo "<tr" . odd() . "><th>" . h($field["field"]) . ($field["primary"] ? " (PRIMARY)" : "");