Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: danvdascalescu [...] yahoo.com
Cc:
AdminCc:

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



Subject: Incorrect output for stylesheet, filetbl, colortbl, listtables, revtbl
The 'stylesheet' and other prolog options simply output the passed text without outputting the corresponding RTF code (e.g. '{stylesheet ... }'). Please find attached a patch for v1.11 which fixes this issue. Hope this helps, Dan Dascalescu
--- D:\Perl\site\lib\RTF\Writer.bak 2005-Jan-04 20:58:20 +++ D:\Perl\site\lib\RTF\Writer.pm 2005-Jan-04 21:19:12 @@ -626,632 +626,632 @@ $$fonts, map( ref( $h{$_} || '' ) eq 'SCALAR' - ? ${ $h{$_} } : ( $h{$_} || '' ), + ? ${ $h{$_} } : ( $h{$_}? "\n{\\$_\n$h{$_}}\n" : '' ), qw( filetbl colortbl stylesheet listtables revtbl ) ),