Edit report at https://bugs.php.net/bug.php?id=63952&edit=1

 ID:                 63952
 User updated by:    wijnand at elementa dot com
 Reported by:        wijnand at elementa dot com
 Summary:            Tidy refresh problem
-Status:             Feedback
+Status:             Closed
 Type:               Bug
 Package:            *General Issues
 Operating System:   Windows
 PHP Version:        5.4.10
 Block user comment: N
 Private report:     N

 New Comment:

It already works... don't know why. Seems to be a server thing.


Previous Comments:
------------------------------------------------------------------------
[2013-01-09 15:33:53] [email protected]

Please provide the data you use as input as well.

------------------------------------------------------------------------
[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

Reply via email to