Calibre runs all text files though
markdown. Markdown is a simple format that allows some basic formatting to be added to a text file. During conversion the markdown syntax is converted to the appropriate HTML equivalent. A tab at the beginning of the file is a markdown marking for a code block. If you could open a
ticket requesting an option to remove whitespace from the beginning of lines for TXT input. That way I won't forget about adding it.