Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

heredoc error in code and pre markup

Quote Reply
heredoc error in code and pre markup
A lot of Perl code is posted on our site and here-docs are frequently used. However, it doesn't display here-docs on our forum correctly though it displays it correctly HERE. Instead of seeing

my $test = <<EOF;
it shows
my $test = <
viewing the source code shows that it's escaping only one <
<PRE><BIG>$this &lt;<EOF; <br> <BR>is a test <BR> <BR>EOF</BIG></PRE>
Even weirder is that
print <<'HERE';
displays correctly.

I didn't modify the code or pre tags at all from the default.  Does anyone have a clue why this is happening?
Quote Reply
Re: [Jasmine] heredoc error in code and pre markup In reply to
You know what, I think it could be my code colorizer as that gets called before anything else and it converts > < and & to their entity name ie &lt; &gt; and &amp

I'll test it out on my copy....

Last edited by:

RedRum: Feb 17, 2002, 3:24 AM
Quote Reply
Re: [Jasmine] heredoc error in code and pre markup In reply to
Update: It's not a Gossamer Forums issue -- please disregard this bug report.

The code and pre tags were being modified by Code Pretty plugin. Anyone who may be experiencing the same thing can uncheck "convert_markup (PRE)" in the Code_Pretty Plugin Hooks settings (in the Plugins menu) and then create markup for perl and nperl until [ RedRum ] has an opportunity to look into it and release version 0.0.3 Smile

Last edited by:

Jasmine: Feb 17, 2002, 12:35 PM
Quote Reply
Re: [Jasmine] heredoc error in code and pre markup In reply to
Hey,

This is fixed and I'll post the plugin tommorrow.