Bug with c++ code sections

Started by
2 comments, last by Michael Tanczos 11 years, 5 months ago
There seems to be a bug when you add cpp code to a post.

All code after << disappears.

Noticed this after two sections of code I posted when blank. First after std::cout<<"whatever" and std::cerr<<"sumtingwong".

Both sections just showed std::cout and std::cerr and all subsequent code went missing.

Example:

[source lang="cpp"]std::cout<<"Rawr"<<std::endl;[/source]

inside my source tags I wrote std::cout<<"Rawr"<<std::endl; but only the first was there

Another example:

[source lang="cpp"]Trollol << wrong[/source]

Here I wrote Trollol << wrong
Advertisement
There is a problem with the source tag. Use the code tag instead (the <>-button):

std::cout << "Rawr" << std::endl


Btw, my suggestion would be to remove the button for the source tag, as it seems the natural thing to press when trying to add code (afterall it is the only button that says "code" on it).

Edit: removed unnecessary quote
There seems to be a bug when you add cpp code to a post.
All code after << disappears.
Noticed this after two sections of code I posted when blank. First after std::cout<<"whatever" and std::cerr<<"sumtingwong".
Both sections just showed std::cout and std::cerr and all subsequent code went missing.
Example:
[source lang="cpp"]std::cout<<"Rawr"<<std::endl;[/source]
inside my source tags I wrote std::cout<<"Rawr"<<std::endl; but only the first was there
Another example:
[source lang="cpp"]Trollol << wrong[/source]
Here I wrote Trollol << wrong


[source lang="cpp"]

<b>Blah blah blah</b>

[/source]
[source]
Test
[/source]

This topic is closed to new replies.

Advertisement