Skip Menu |

This queue is for tickets about the XML-Twig CPAN distribution.

Report information
The Basics
Id: 2315
Status: resolved
Worked: 20 min
Priority: 0/
Queue: XML-Twig

People
Owner: MIROD [...] cpan.org
Requestors: gabriel [...] intruvert.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.09
Fixed in: 3.10



Subject: Comments insert extra indentation
I'm using XML::Twig 3.09 on Windows 2k & Linux and encountering an odd bug with pretty-printing. When comments precede a given tag, they cause an extra level of indentation to be inserted before the next tag. Even more oddly, each time I use Twig to read a file, and then I write it out, when I repeat the process again, even more indentation is added. This bug also seems to occur in a Ruby XML library, oddly enough.
[guest - Mon Mar 31 14:57:57 2003]: Show quoted text
> I'm using XML::Twig 3.09 on Windows 2k & Linux and encountering an odd > bug with pretty-printing. When comments precede a given tag, they > cause an extra level of indentation to be inserted before the next > tag. > > Even more oddly, each time I use Twig to read a file, and then I write > it out, when I repeat the process again, even more indentation is > added. This bug also seems to occur in a Ruby XML library, oddly > enough.
Hi, Could you try with the development version at http://www.xmltwig.com/xmltwig? I have fixed a couple of things there and it should work better. If it does not could you send me an example of a file that does not pretty print properly. Thanks __ Mirod