Skip Menu |
 

This queue is for tickets about the RTF-Writer CPAN distribution.

Report information
The Basics
Id: 26133
Status: new
Priority: 0/
Queue: RTF-Writer

People
Owner: Nobody in particular
Requestors: beneagle [...] earthlink.net
Cc:
AdminCc:

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



Subject: Close Function doesn't close properly
Download (untitled) / with headers
text/plain 468b
it seems the close function doesn't properly close the file, I had troubles when creating a rtf file then using MIME::Lite to send it via email. the attached file was unabled to be opened. I figured out that it wasn't closing properly, here is the fix I used to close it: sub RTF::Writer::close { return unless $_[0][2]; $_[0]->print(\$_[0][1]) if length $_[0][1]; $_[0][2]->close(); undef $_[0][2]; $_[0][1] = ''; return; } hopes this helps


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

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