Skip Menu |

This queue is for tickets about the Excel-Template CPAN distribution.

Report information
The Basics
Id: 64726
Status: resolved
Priority: 0/
Queue: Excel-Template

People
Owner: rbo [...] cpan.org
Requestors: jvprosser [...] gmail.com
Cc:
AdminCc:

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



Subject: Excel::Template merged cells and preserving CRLFs
Date: Wed, 12 Jan 2011 22:58:46 -0500
To: bug-Excel-Template [...] rt.cpan.org
From: Joe Prosser <jvprosser [...] gmail.com>
Hi Maintainers, If I use text_wrap="1" in a format around a single cell, and add content to that cell that contains '\n's, they are displayed in the cell appropriately (as if I hit alt-enter) If I do this in a merged cell, I lose all the crlfs. Thanks! -Joe Prosser
In the master branch, I can not verify the problem, unfortunately. My example is attached. The only problem I have is that: the height is not adjusted for merged cells.
Subject: rt#64726.pl
#!/usr/bin/env perl use warnings; use strict; use lib 'lib/'; use Excel::Template; my $object = Excel::Template->new(file => \*DATA); $object->write_file( $0 . ".xls" ); __DATA__ <workbook> <worksheet> <row> <cell ref="foo"/> <cell ref="foo"/> <cell ref="foo"/> <format text_wrap='1'> <merge_range ref="foo">Text to insert into merged range </merge_range> </format> </row> <row> <format text_wrap='1'> <cell>Text to insert into merged range </cell> </format> </row> </worksheet> </workbook>
On Sun Apr 29 18:09:51 2012, rbo wrote: Show quoted text
> The only problem I have is that: the height is not adjusted for merged > cells.
I think this is a problem of Spreadsheet::WriteExcel, I have created an RT ticket: #76883
On Sun Apr 29 19:02:51 2012, rbo wrote: Show quoted text
> On Sun Apr 29 18:09:51 2012, rbo wrote:
> > The only problem I have is that: the height is not adjusted for
> merged
> > cells.
> I think this is a problem of Spreadsheet::WriteExcel, I have created > an RT ticket: #76883
OK, that is an Excel problem. #76883 -> Resolved. Please reopen the ticket if the problem still exist.