#32451 [Opn->Bgs]: \n, \t doesn't work anymore
| From: | rasmus@php.net | Date: | Fri, 25 Mar 2005 07:40:03 +0000 |
| Subject: | #32451 [Opn->Bgs]: \n, \t doesn't work anymore | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75848@lists.php.net to get a copy of this message | ||
ID: 32451
Updated by: rasmus@php.net
Reported By: arizabo at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows XP
PHP Version: 4.3.10
New Comment:
\n and \t have no meaning in HTML other than being normal whitespace.
If you want a line break, you need to use a <br /> tag. Do a View
Source and you will see that your \n and \t's are working quite nicely.
Previous Comments:
------------------------------------------------------------------------
[2005-03-25 06:47:11] arizabo at gmail dot com
Description:
------------
1) upgrade (security patches) mozilla firefox
2) then after some times the \n and \t not working.
3) using echo "test1\n test2"; will give "test1 test2" result without
new line.
4) i test the code on both firefox 1.0 and IE 6.0 but the result is
same.
php programming tool: Apache Friends xampp (php4 and 5, mysql,apache,
etc) and i use it as it is without any changes.
Reproduce code:
---------------
<?php
echo "test1\n test2\n \ttest3\n";
echo "test4\n"."test5\t"."test6";
?>
Expected result:
----------------
(actual result copy and paste from firefox 1.0)
test1
test2
test3
test4
test5 test6
Actual result:
--------------
(actual result copy and paste from firefox 1.0)
test1 test2 test3 test4 test5 test6
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32451&edit=1