Add newline when concatting code

this.props.code could end without a newline, in which case we need to add one to avoid syntax errors.