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.