Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Named Code Tags Are Unnamed With Edits
#1
For example:
    C++-Code:
#include <iostream>
int main(int argc, char *argv[])
{
    return 1;
}


Becomes:
Code:
#include <iostream>
int main(int argc, char *argv[])
{
    return 1;
}
when I edit.

I also noticed that sometimes new lines are spawned.

Edit: This only happens with quick edit.
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:
#2
Adding to that, it's not that the renderer is wrong, it's that when you edit, the [code=c++ ] tags become [code ] tags.
Reply
Thanks given by:
#3
@A-Man does it also mess up when using full edit?

[code=cpp]
int a = 0;
cout << a << endl;
[/code]

Produces:
    C++-Code:
int a = 0;
cout << a << endl;

Notice the extra newline.
If you look at the HTML there is both a <br>-tag followed by a line feed-character (U+000A), which since the code is within a <pre> tag, both are counted as new lines.
Either one should be removed, to fix the issue.

Adding
    CSS-Code:
.geshicode_b br {
    display: none;
}

Might fix the issue, but might also make things worse.

Edit: @STM1993 I am not sure these threads are relevant to each other.

STM1993 edited this post 12-30-2015 08:17 PM because:
Threads merged.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by:
#4
(12-30-2015, 08:08 PM)Someone else Wrote:  @A-MAN does it also mess up when using full edit?
I just tried and no, not for me at least.

Quote:Edit: @STM1993 I am not sure these threads are relevant to each other.
Really? I reported it. I thought this was exactly what I referred to in the last part of my main post.
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:
#5
(12-30-2015, 08:44 PM)A-Man Wrote:  Really? I reported it. I thought this was exactly what I referred to in the last part of my main post.
I did not notice the last paragraph of your post at the time I wrote it, but I would still say that joining two topics together, that are largely about two different issues, will only cause confusion for no real gain.
It is still largely debatable.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by:
#6
I have solved this already. Waiting for BP to implement it.

http://www.lf-empire.de/forum/showthread.php?tid=10150
[Image: random.php?pic=random]
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
The meaning of life is to give life a meaning.
Stop existing. Start living.
Reply
Thanks given by: Rhino.Freak , A-Man




Users browsing this thread: 1 Guest(s)