Skip Menu |

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

Report information
The Basics
Id: 71521
Status: new
Priority: 0/
Queue: XML-Generator

People
Owner: Nobody in particular
Requestors: g111 [...] netcologne.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.04
Fixed in: (no value)



Hello, enabling indentation puts indents into multi line values, too. See the attached test.pl script for an example. The output of the script is <root> <test foo="tra">aaa bbb ccc ddd</test> </root> But IMHO it should be like this: <root> <test foo="tra">aaa bbb ccc ddd</test> </root> In my case this did break base64 encoded data. The workaround is to put the data into a cdata-Block. With this the data es kept alright. Greetings, Gert
Subject: test.pl
use strict; require XML::Generator; my $xg = XML::Generator->new( escape => 'always,even-entities', pretty => 2, conformance => 'strict', ); my $value = "aaa\nbbb\nccc\nddd"; print $xg->root( $xg->test( {foo=>"tra"}, $value, ), );
Subject: Indentation puts indents into multi line values
From: g111 [...] netcologne.de
Sorry, I have forgotten the subject. I hope I can set it afterwards now.