Bug #54707 [Opn->Bgs]: Indentation does not work as expected
| From: | johannes@php.net | Date: | Wed, 11 May 2011 10:33:04 +0000 |
| Subject: | Bug #54707 [Opn->Bgs]: Indentation does not work as expected | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160678@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54707&edit=1
ID: 54707
Updated by: johannes@php.net
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