This queue is for tickets about the Spreadsheet-XLSX CPAN distribution.

Report information
The Basics
Id:
111087
Status:
new
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
cjm [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
0.15
Fixed in:
(no value)



Subject: [PATCH] Does not handle newlines in <Relationship> tags
I have a .xlsx file generated by a reporting package that has newlines inside the <Relationship> tags in xl/_rels/workbook.xml.rels: <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/> Spreadsheet::XLSX doesn't handle that, but the fix is simple: just add the /s modifier to the regex so it matches the newlines. Patch is attached.
Subject: relationship.patch
--- lib/Spreadsheet/XLSX.pm 2015-10-30 21:33:19.000000000 -0500 +++ lib/Spreadsheet/XLSX.pm 2016-01-11 09:59:34.913422993 -0600 @@ -253,7 +253,7 @@ my %rels = (); - foreach ($member_rels->contents =~ /\<Relationship (.*?)\/?\>/g) { + foreach ($member_rels->contents =~ /\<Relationship (.*?)\/?\>/gs) { my ($id, $target); ($id) = /Id="(.*?)"/;


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.