in reply to RTF::Writer hyphens removed
paragraph is expecting to be gives some rich text, yet you are passing it plain text. Use rtfesc to fix special characters such as "-".
use RTF::Writer qw( rtfesc ); $some_text = 'Hello this-is-a-hyphenated-sentence'; $rtf->paragraph( \'\fs24', rtfesc($some_text) ); $rtf->paragraph( \'\fs24\b', rtfesc("Anniversary-Date: $anniv_date"), \'\line' ); # or $rtf->paragraph( \'\fs24\b', rtfesc("Anniversary-Date: $anniv_date\n") );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RTF::Writer hyphens removed
by inblosam (Monk) on Jul 07, 2005 at 01:53 UTC | |
by ikegami (Patriarch) on Jul 07, 2005 at 04:30 UTC |