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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 18:02:40 2024 UTC