Subject: | Module fails to call end_document() after new(out_func...) |
Re: HTML-SyntaxHighlighter-0.01.tgz:
I'm using
my($parser)= HTML::SyntaxHighlighter -> new(out_func => \$var);
$parser -> parse($content);
I found I had to call
$parser -> end_document();
in order to get the </code> token emitted. I think this should be
called automatically at the end of parse, at least when output is
redirected to a variable.