Jump to content

  • Log In with Google      Sign In   
  • Create Account


Bug with c++ code sections


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Psilobe   Members   -  Reputation: 193

Posted 23 October 2012 - 08:38 AM

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

Edited by Psilobe, 23 October 2012 - 08:41 AM.


Sponsor:

#2 brx   Members   -  Reputation: 627

Posted 23 October 2012 - 09:23 AM

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

Edited by brx, 23 October 2012 - 09:23 AM.


#3 Michael Tanczos   Senior Staff   -  Reputation: 5038

Posted 23 October 2012 - 06:43 PM

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]

Edited by Michael Tanczos, 23 October 2012 - 06:43 PM.


#4 Michael Tanczos   Senior Staff   -  Reputation: 5038

Posted 29 October 2012 - 12:44 PM


Test






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS