Expose addNewline and use nbsp explicitly.

Changes needed in order to support the Substance Code node type.