fixed rendering tokens to respect newlines