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

 ID:                 54707
 Updated by:         [email protected]
 Reported by:        vtap at club-internet dot fr
 Summary:            Indentation does not work as expected
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            Tidy
 Operating System:   W 7
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

This is nothing we can do about. Talk to tidy developers.


Previous Comments:
------------------------------------------------------------------------
[2011-05-11 12:17:48] vtap at club-internet dot fr

Description:
------------
---

>From manual page: http://www.php.net/tidy.repairstring#Description

---



Test script:
---------------
        $config = array(

            "indent" => true,

            "indent-attributes" => true,

            "indent-spaces" => 4,

            "input-xml" => true,

            "output-xml" => true,

            "sort-attributes" => 1,

            "wrap" => 80,

            "wrap-attributes" => true,

        );

        $clean = $tidy->repairString($doc, $config, "utf8");



Expected result:
----------------
<?xml version="1.0" encoding="utf-8"?>

<onecmdb>

    <instances>

        <code_postal alias="cod--0000000001"

                     displayValue="SOIGNOLLES EN BRIE (77111)"

                     id="3417967067386912587">SOIGNOLLES EN BRIE (77111)


            <copos>77111</copos>

            <ville>SOIGNOLLES EN BRIE</ville>

        </code_postal>

    </instances>

</onecmdb>



Actual result:
--------------
<?xml version="1.0" encoding="utf-8"?>

<onecmdb>

    <instances>

        <code_postal alias="cod--0000000001"

                     displayValue="SOIGNOLLES EN BRIE (77111)"

                     id="3417967067386912587">SOIGNOLLES EN BRIE (77111)


        <copos>77111</copos>

        <ville>SOIGNOLLES EN BRIE</ville></code_postal>

    </instances>

</onecmdb>




------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54707&edit=1

Reply via email to