Preserving line breaks on text output