Fixed inconsistent whitespace
Extracted the node rendering code so that it can be overridden for a custom node type.