GitHub onebox wrongly removes identation inside the curly braces


(Discourse.PRO) #1

An example of the wrong rendering:

The right rendering (you can see it directly on GitHub using the link above):


(Jeff Atwood) #2

Seems correct to me, I do not want to see out of context indentation for snippets anyway. What if it was indented 50 spaces because it is a deeply nested routine?


(Discourse.PRO) #3

It is IN-context identation, because the context is set by the curly braces.


(Discourse.PRO) #4

Another example (JavaScript code):

The contents of the window.submitShipment function is idented in the original code (you can see it on GitHub using the link above), but the onebox removes this identation for a some reason.