Quote:
Originally Posted by nrapallo
That's it!
Is there a way to use '--rawhtml' and NOT print $text to STDOUT, but rather re-direct (re-open) it internally for the my substitution code to work.
I think what is happening here is that printf to STDOUT in binmode 'actually' generates the para boundaries I want to use. They don't seem to be there when the text is first used i.e my $text = $pdb->text;
|
Just save it in a variable. "my $rawhtml = $text;" and do it outside the $opt_rawhtml if statement.
binmode is used because Windows add chacacters to the output without it. So the filepos pointer will not be correct so I cannot debug without binmode.