Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Named Code Tags Are Unnamed With Edits
#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:


Messages In This Thread
Named Code Tags Are Unnamed With Edits - by A-Man - 12-30-2015, 08:00 PM
[code=...] tags have double new line - by Som1Lse - 12-30-2015, 08:08 PM



Users browsing this thread: 1 Guest(s)