Bug #63952 [Opn->Fbk]: Tidy refresh problem
| From: | pajoye@php.net | Date: | Wed, 09 Jan 2013 15:33:53 +0000 |
| Subject: | Bug #63952 [Opn->Fbk]: Tidy refresh problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-175912@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63952&edit=1
ID: 63952
Updated by: pajoye@php.net
Reported by: wijnand at elementa dot com
Summary: Tidy refresh problem
-Status: Open
+Status: Feedback
Type: Bug
Package: *General Issues
Operating System: Windows
PHP Version: 5.4.10
Block user comment: N
Private report: N
New Comment:
Please provide the data you use as input as well.
Previous Comments:
------------------------------------------------------------------------
[2013-01-09 15:31:45] wijnand at elementa dot com
Description:
------------
---
From manual page: http://www.php.net/book.tidy
---
I have a found something that is probably a bug.
I use PHP 5.4.0.
I use the code at the end of my file (there is only one function loaded after it
that stores some data in the database):
The problem I have is that tidy sometimes does what it should do (tabbing the
source-code) and sometimes it refuses. When I push "Refresh", then Randomly he
does it or doesn't do anything with tabbing.
Because it's random, I think it's a bug.
Test script:
---------------
$options = array(
"indent" => true,
"indent-spaces" => 2,
"wrap" => 200
);
$tidy = tidy_parse_string($str, $options);
echo utf8_encode(tidy_get_output($tidy));
Expected result:
----------------
That my source code is tabbed automaticly.
Actual result:
--------------
Sometimes it's tapped, sometimes it isn't (on refresh).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63952&edit=1