Little Fighter Empire - Forums

Full Version: Named Code Tags Are Unnamed With Edits
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Adding to that, it's not that the renderer is wrong, it's that when you edit, the [code=c++ ] tags become [code ] tags.
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: I am not sure these threads are relevant to each other.
(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: 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.
(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.
I have solved this already. Waiting for BP to implement it.

http://www.lf-empire.de/forum/showthread.php?tid=10150