The code blocks on this forum give weird output every now and then.
Specifically, multi-line code is rendered as a single line, which makes the code completely useless.
From personal experience, this happens when one or both of the opening/closing code blocks is on he same line as the actual code.
I cannot say his problem is perfectly producible. It probably would have been fixed by now if it was. It seems to happens sometimes, perhaps because some characters are or are not included and interfere with proper rendering.
A recent example can be seen in post #5 here: https://www.statalist.org/forums/for...ments-for-date
I've experienced this myself plenty of times, and I have seen code of other members mangled like this, including from some members with plenty of experience on here.
My personal experience is that it never happens if you put opening and closing code blocks on separate lines, i.e.:
{CODE}
some code
{/CODE}
I would appreciate if this behavior could be fixed, or alternatively, if pressing # would not result in
{CODE}{/CODE}
but instead would result in
{CODE}
{/CODE}
being written in the textbox.
I'd be happy if anyone could suggest if maybe there is some error on the user side that makes this happen (and how to prevent).
If other members have noticed the same, please do also comment. If I'm not he only one that bumps into this every now and then maybe a forum admin might look into this.
0 Response to Code blocks on this forum need fixing
Post a Comment