expanded cosmetic changes to allow word wrapping

This commit is contained in:
Loïc Chapeaux
2002-04-12 11:36:16 +00:00
parent 604faaea45
commit 9bfc4ac4b4
2 changed files with 7 additions and 2 deletions

View File

@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-04-12 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/display_tbl.lib.php3, lines 957-991: expended cosmetic changes
to allow word wrapping.
2002-04-11 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/display_tbl.lib.php3, line 957: cosmetic change to allow word
wrapping thanks to Adam Burley <kidburla2002 at users.sourceforge.net>.

View File

@@ -955,7 +955,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
// loic1: displays all space characters, 4 space
// characters for tabulations and <cr>/<lf>
$row[$pointer] = htmlspecialchars($row[$pointer]);
$row[$pointer] = str_replace("\011", '&nbsp;&nbsp;&nbsp;&nbsp;', str_replace(' ', '&nbsp;', $row[$pointer]));
$row[$pointer] = str_replace("\011", ' &nbsp;&nbsp;&nbsp;', str_replace(' ', ' &nbsp;', $row[$pointer]));
$row[$pointer] = ereg_replace("((\015\012)|(\015)|(\012))", '<br />', $row[$pointer]);
$vertical_display['data'][$foo][$i] = ' <td valign="top" bgcolor="' . $bgcolor . '">' . $row[$pointer] . '</td>' . "\n";
} else {
@@ -989,7 +989,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
// characters for tabulations and <cr>/<lf>
else {
$row[$pointer] = htmlspecialchars($row[$pointer]);
$row[$pointer] = str_replace("\011", '&nbsp;&nbsp;&nbsp;&nbsp;', str_replace(' ', ' &nbsp;', $row[$pointer]));
$row[$pointer] = str_replace("\011", ' &nbsp;&nbsp;&nbsp;', str_replace(' ', ' &nbsp;', $row[$pointer]));
$row[$pointer] = ereg_replace("((\015\012)|(\015)|(\012))", '<br />', $row[$pointer]);
}
$vertical_display['data'][$foo][$i] = ' <td valign="top" bgcolor="' . $bgcolor . '">';