Little Fighter Empire - Forums
Named Code Tags Are Unnamed With Edits - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Empire Zone (https://lf-empire.de/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Report (https://lf-empire.de/forum/forumdisplay.php?fid=6)
+--- Thread: Named Code Tags Are Unnamed With Edits (/showthread.php?tid=10185)



Named Code Tags Are Unnamed With Edits - A-Man - 12-30-2015

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.


RE: Named Code Tags Are Unnamed With Edits - Azriel - 12-30-2015

Adding to that, it's not that the renderer is wrong, it's that when you edit, the [code=c++ ] tags become [code ] tags.


[code=...] tags have double new line - Som1Lse - 12-30-2015

@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.


RE: Named Code Tags Are Unnamed With Edits - A-Man - 12-30-2015

(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.


RE: Named Code Tags Are Unnamed With Edits - Som1Lse - 12-30-2015

(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.


RE: Named Code Tags Are Unnamed With Edits - MangaD - 12-31-2015

I have solved this already. Waiting for BP to implement it.

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