PDA

View Full Version : [FIXED] One extra line break for [php] codes in certain browsers


Gary King
05-25-2003, 05:29 PM
Browser: Mozilla Firebird 0.6

Problem: For some reason, when I view code in [php] tags, the code has one extra line break - code in [ code ] or [sql] tags do not have this problem, though.

Example:

if ($bbuserinfo['userid']!=0)
{
print "Your <b>userid</b> is $bbuserinfo['userid']."
}
else
{
print "You are not logged in, please log in!."
}

would show up as:

if ($bbuserinfo['userid']!=0)

{

print "Your <b>userid</b> is $bbuserinfo['userid']."

}

else

{

print "You are not logged in, please log in!."

}

when they are enclosed in [php] tags instead.

Would be nice to have this fixed, so I don't always to remove the extra lines (although it isn't very difficult using PHP).

Xenon
05-25-2003, 05:37 PM
the php tag is a standart tag of vbulletin, so when there is a bug you should report it at vb.com

Gary King
05-25-2003, 06:45 PM
True. Done.

Xenon
05-28-2003, 09:37 PM
should be fixed now, can you please confirm?

Gary King
05-28-2003, 09:55 PM
<?php

print "Hello world!";

?>

Gary King
05-28-2003, 09:59 PM
Thank you, it looks proper now.

filburt1
05-28-2003, 10:01 PM
It's probably related to that POS highlight_file function in PHP...not only does it add tons of empty tags and useless garbage, but it screws up on highlighting like a $ in regexs...grr!

Boofo
05-28-2003, 10:17 PM
Today at 05:37 PM Xenon said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=401291#post401291)
should be fixed now, can you please confirm?

How did you fix it?

Gary King
05-28-2003, 10:20 PM
<code style="white-space: nowrap">