Subject: | Loosing format information in merged cells |
Date: | Mon, 6 Jul 2015 09:04:24 +0000 |
To: | "bug-Excel-Template-XLSX [...] rt.cpan.org" <bug-Excel-Template-XLSX [...] rt.cpan.org> |
From: | Detlef Niemann-Bode <Detlef.Niemann-Bode [...] t8y.com> |
Hi Dave,
thanks for your Excel Template library. Looks like it could be the perfect starting point for a small project I am working on.
Unfortunately, my Excel template uses lots of merged cells, containing formatted text even with line breaks.
And even before doing any real templating work, I am getting lost of most of the format information.
I have attached two example files showing the problem.
I am running perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux-gnu-thread-multi on a debian 8 system.
The example Excel file generated by Excel for Mac Preview. But an older File coming from a PC shows the same problems.
The code I used is rather simple, more or less from your documentation:
my ($self, $wbk) = Excel::Template::XLSX->new("$outpath/out_$file", "$inpath/$file");
my $template = Template::Tiny->new( TRIM => 1 );
$self->{template_callback} = sub {
my ($self, $textref) = @_;
$template->process($textref, { template => 'Output' }, $textref );
};
I am not a all familiar with debugging libraries, so I just want to ask if this is on your to do list or I will have to see if I can fix it or work around it on my own.
Cheers,
Detlef
--
detlef niemann-bode | managing director | t8y.com gmbh | t +49 40 2351 3959 | bernhard-nocht-straße 113 | 20359 hamburg |
managing directors: detlef niemann-bode, christian koop
local court of hamburg - hrb 117865; registered seat: hamburg
Message body not shown because it is not plain text.
Message body not shown because it is not plain text.