PDA

View Full Version : Code tags bug



VirtualAce
06-04-2006, 06:18 PM
The bugs thread is so large I thought I would post this here:

The following code turns the italics on even when inside of a code block.

for (int i=0;i<static_cast<int>(m_vVector.size());i++)
{
delete m_vVector[i];
}

//This is a test of italics.

Proof.



for (int i=0;i<static_cast<int>(m_vVector.size());i++)
{
delete m_vVector[i];
}

//This is a test of italics.


Hmm it didn't do it here. It did in one of my other threads.
http://cboard.cprogramming.com/showthread.php?t=79776

Notice the line in the destructor for CMyTabCtrl. It should be

delete m_vWnds[i];

Instead it read it as 'italics on'.

Thantos
06-04-2006, 07:46 PM
Its because vBlah parses BBC inside of code tags. Its really annoying IMO.

VirtualAce
06-04-2006, 08:42 PM
Why does it only occur at certain times?

Thantos
06-04-2006, 11:42 PM
In the code that caused it did you by chance have more then one bbc "tag" in it, or something that would look like a closing tag??

Lets test some of them out



blarg [i]blah




blarg [i]blah[b]meh




blarg [i]blah"[/u]"

SlyMaelstrom
06-05-2006, 01:04 AM
arry; // This should read *(arry + i) in subscript form
Before this statement I open an italic.

Before this statement I close an italic.

The [/i], though, closes the first [i] it sees, not the last. The first being the subscript operator in the code. Your problem is that you decided to put italics at the end of your post. Note that [i] at the beginning of your last paragraph.

The only way I can think to fix this is to put italics tags around your subscript operator only and negate them.
arry[i]; // No more italics here.Or you could just use 'j' as your count variable instead of 'i'. ;)

Sang-drax
06-05-2006, 04:48 AM
for (int i=0;i<static_cast<int>(m_vVector.size());i++)
{
delete m_vVector[i];
}

//This is a test of italics.
Some normal text.

Some italics at the end.

Some normal text. I cannot belive they still have bugs like this.

Sang-drax
06-05-2006, 04:49 AM
This software costs money. This is unacceptable.

CornedBee
06-05-2006, 05:01 AM
The typical workaround I use is to use code like [i] for these things - it's the same I use when demonstrating tags. (Which makes what I just posted a monster.)

Thantos
06-05-2006, 09:04 AM
As much as I hate defending vBulletin, this site is running an old version, and its possible that a newer one has fixed these issues.

joeprogrammer
06-05-2006, 09:26 AM
Is there anything seriously wrong with phpBB? (http://www.phpbb.com/)

Thantos
06-05-2006, 10:22 AM
yes :P

joeprogrammer
06-05-2006, 07:24 PM
yes :P

What?

gcn_zelda
06-05-2006, 07:52 PM
What?

It's free. It can't be good.

...

kermit
06-05-2006, 08:25 PM
And it does not look like this board. Change is bad.