1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 20:01:25 +02:00

Print \n as <br />, not &nbsp;

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@736 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-06-21 23:41:28 +00:00
parent 52f68a6763
commit a69fff7e71
2 changed files with 2 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ function select($result, $dbh2 = null) {
} else {
if ($blobs[$key] && !is_utf8($val)) {
$val = "<i>" . lang('%d byte(s)', strlen($val)) . "</i>"; //! link to download
} elseif (!strlen(trim($val))) {
} elseif (!strlen(trim($val, " \t"))) {
$val = "&nbsp;"; // some content to print a border
} else {
$val = nl2br(htmlspecialchars($val));