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.
Related Posts with Code blocks on this forum need fixing
Marginal Effects after GsemHello everyone I am running a multinomial logit model using gsem I tried finding marginal effect of …
label value?Dear All, Is there any other way (say, one line command) to obtain `a' as below. Code: * Example ge…
Unbalanced datasetHello Stata users, I started using Stata recently and at the moment I find myself in a dilemma. My d…
Indicator variable based on change in string variableHi, I'm dealing with (unbalanced) panel data. Code: * Example generated by -dataex-. To install: s…
Modifying a dataset to facilitate mergingHello, I am working with NHANES data and have been merging datasets together using a 1:1 merge with…
Subscribe to:
Post Comments (Atom)
0 Response to Code blocks on this forum need fixing
Post a Comment