Re: [XML-Twig] Problems with Newlines in print

mirod <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Johannes Kilian wrote:

> I've a quite complex program, which manipulates an XML-Config file on
> base of other XML-Configfiles.
> Reading the XML-file and printing it again produces an output-XML-file
> which contains newlines, which I don't want to have in my output ...
> (It's very annoying,, since the considered XML-File is very often
> rewritten and each time new newlines are inserted - so it's growing all
> the time ...) How can I avoid the new newlines?
> Any help welcome ...

Hi,

It would be easier if the snippet of code that you sent could actually run. 
Barring that I can still give you some generic advice: if the input file is 
already indented, could you try using the keep_spaces => 1 option instead of 
pretty_print => 'indented'? That might help.

-- 
mirod


_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.