Hi there,

I have a problem with bbcode, I mean "code" statement exactly. When I enclose my source code into the code statements drupal automatically adds "
" to each line or "

". It's very annoying and I tried to fix the problem myself but I'm hopeless (After I modified bbcode module code and it didn't work, I restored the original bbcode module but it still didn't work). I try to place that:

[code]
T Get(CVElement Element) const
{
if(Element == CV_X)
return m_X;
else if(Element == CV_Y)
return m_Y;
else
return m_Z;
}
[/code]

but I get that:

[code]

T Get(CVElement Element) const
{
if(Element == CV_X)
return m_X;
else if(Element == CV_Y)
return m_Y;
else
return m_Z;
}
[/code]

Additionally I noticed that if "code" encloses only one line of text, everything looks good, and only in that case. All multilined text ad "br'ed"... :(

PS: Sorry for bothering you but drupal.org works very slow on my computer. I don't know why. Each time I use searching engine it takes me almost a minute to find all results, that's why I asked here instead of searching for the problem on the forums.

Comments

Hydragorn’s picture

Shit, drupal removed all br's lemme try again:

<br />
T Get(CVElement Element) const<br />
{<br />
	if(Element == CV_X)<br />
		return m_X;<br />
	else if(Element == CV_Y)<br />
		return m_Y;<br />
	else<br />
		return m_Z;<br />
}<br />
anonymouscowards’s picture

but just to say it's not your computer that's making drupal.org slow, it's drupal.org!

Search has been painfully slow for me too for the last hour and I'm tempted to unleash a torrent of questions in frustration!

You should try google and search for "your terms" site:drupal.org. It usually gives a whole different (better?!) set of results too.