I checked that but I don't undertsnad what that has to do with it. Here's what I did to fix it.
I replaced:
Code:
#ffffff; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #273549;\"><pre>" . $foundcode .
with:
Code:
#ffffff; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #273549;\"><pre>".str_replace("<br>","",str_replace("<br />","",$foundcode)).
and that seemed to take the extra spaces out of the code box.
Is there a better or easier way to do the same thing?