SWC-530: preserve whitespace in text file previews