I was posting a block of code in a discussion when I saw
the code is not correctly represented in the Forum.
I put here the code in a CODE block and also in a file.
Comparing the two you will see that e.g. this part is not correct
in CODE block.
(0..4).each do |i|
Not yet sure whether this is a bug in XenForo, or related to a custom CODE tag.
The result of pasting to an insert code dialogue:
AFAICT: where the true text has one leading white...