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

Owner: Nobody in particular
Requestors: g111 [...]

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

Download (untitled) / with headers
text/plain 457b
Hello, enabling indentation puts indents into multi line values, too. See the attached 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
text/x-perl 266b
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 [...]
Sorry, I have forgotten the subject. I hope I can set it afterwards now.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to