diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 98c3dd61..720be4cc 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -267,7 +267,7 @@ class Adminer { * @return null */ function tableStructurePrint($fields) { - echo "
" . lang('Column') . " | " . lang('Type') . (support("comment") ? " | " . lang('Comment') : "") . " | ||||
---|---|---|---|---|---|---|
" . h($field["field"]);
diff --git a/adminer/static/default.css b/adminer/static/default.css
index 13e111e7..7e46dcd5 100644
--- a/adminer/static/default.css
+++ b/adminer/static/default.css
@@ -32,7 +32,7 @@ input.wayoff { left: -1000px; position: absolute; }
.version { color: #777; font-size: 67%; }
.js .hidden, .nojs .jsonly { display: none; }
.js .column { position: absolute; background: #ddf; padding: .27em 1ex .3em 0; margin-top: -.27em; }
-.nowrap td, .nowrap th, td.nowrap { white-space: pre; }
+.nowrap td, .nowrap th, td.nowrap, p.nowrap { white-space: pre; }
.wrap td { white-space: normal; }
.error { color: red; background: #fee; }
.error b { background: #fff; font-weight: normal; }
diff --git a/adminer/table.inc.php b/adminer/table.inc.php
index 289eca55..b980fe5d 100644
--- a/adminer/table.inc.php
+++ b/adminer/table.inc.php
@@ -11,7 +11,7 @@ page_header(($fields && is_view($table_status) ? $table_status['Engine'] == 'mat
$adminer->selectLinks($table_status);
$comment = $table_status["Comment"];
if ($comment != "") {
- echo " " . lang('Comment') . ": " . h($comment) . "\n"; + echo " " . lang('Comment') . ": " . h($comment) . "\n"; } if ($fields) { diff --git a/changes.txt b/changes.txt index 15fdbb2c..05b65f1c 100644 --- a/changes.txt +++ b/changes.txt @@ -1,4 +1,5 @@ Adminer 4.4.1-dev: +Display newlines in column comments (bug #573) Adminer: Fix Search data in tables (regression from 4.4.0) CSP: Allow any styles, images, media and fonts, disallow base-uri MySQL: Support geometry in MySQL 8 (bug #574) diff --git a/plugins/table-structure.php b/plugins/table-structure.php index 0f51e152..09d7a6e5 100644 --- a/plugins/table-structure.php +++ b/plugins/table-structure.php @@ -13,7 +13,7 @@ class AdminerTableStructure { * @return bool */ function tableStructurePrint($fields) { - echo "
|