in reply to [SOLVED] XML::Twig's twig_print_outside_roots adds extra blank lines to output

You told XML::Twig to print "outside roots". The whitespace around the statement tags is part of the XML, they are text() nodes, and they get printed as you wanted.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: XML::Twig's twig_print_outside_roots adds extra blank lines to output
by ateague (Monk) on Jun 12, 2014 at 18:11 UTC

    Thanks for the clarification

    Is there a way to filter out that text() whitespace when twig_print_outside_roots is enabled? Or is the better option to use twig_handlers in lieu of twig_roots?

Re^2: XML::Twig's twig_print_outside_roots adds extra blank lines to output
by Anonymous Monk on Jun 26, 2014 at 23:34 UTC
    I'd like to know the answer to this also, please.