support text output (whitespace no longer lost)
fix whitespace problems when parsing text