Closed ETHproductions closed 7 years ago
Nope, the post is formatted weirdly. Normally the html for the site is <pre><code>{your code}</code></pre>
, but in this case, the format is just <pre>{your code}</pre>
because the writer used html tags:
...bytes
<pre>
undef$/;print<DATA>
__DATA__
</pre>
Trailing newline....
I don't know if this should be handled because this is rarely done in posts.
The code that causes this is here: https://github.com/vihanb/PPCG-Design/blob/master/ppcg.user.js#L616
function showByteCounts() {
// ...
$(this).find("pre code").each(function() {
// ...
}
Yeah, I don't think this is important enough to require fixing.
See http://codegolf.stackexchange.com/a/100934/42545
The userscript doesn't give the code block any byte counter. Is this because the block contains
<DATA>
?