php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54707 Indentation does not work as expected
Submitted: 2011-05-11 12:17 UTC Modified: 2011-05-11 12:32 UTC
From: vtap at club-internet dot fr Assigned:
Status: Not a bug Package: Tidy (PECL)
PHP Version: 5.3.6 OS: W 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vtap at club-internet dot fr
New email:
PHP Version: OS:

 

 [2011-05-11 12:17 UTC] 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>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-11 12:32 UTC] johannes@php.net
-Status: Open +Status: Bogus
 [2011-05-11 12:32 UTC] johannes@php.net
This is nothing we can do about. Talk to tidy developers.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 14:01:32 2025 UTC