View Single Post
Old 05-30-2010, 02:45 AM   #1
Balorn
Junior Member
Balorn began at the beginning.
 
Balorn's Avatar
 
Posts: 1
Karma: 10
Join Date: May 2010
Device: PRS-300
Unhappy Problem with TXT Input

A lot of the things I read were originally formatted for 80-column monospace displays. I've been playing with the Extra CSS section and trying to tweak things to look right, but looking in the debug directories I discovered a major issue with the design of the TXT input plugin:

The TXT input plugin always removes whitespace from the start of the line, and has no option to leave it there.

For many things this doesn't matter, but preformatted TXT files often rely on space at the start of the line for things to look right.

I did a quick test, and starting with this source text file:
Code:
This                      test.
     is                 a
	    a            is
		  test. This
I got this in the html file in the debug\input folder:
Code:
<p>This                      test.</p>
<p>is                 a</p>
<p>a            is</p>
<p>test. This</p>
I discovered this when I found adding "white-space: pre;" in the Custom CSS section helped with mid-line spacing but still didn't indent properly.

There really needs to be an option for TXT input to not strip leading spaces, so we can have them be included in later steps of conversion.

Last edited by Balorn; 05-30-2010 at 07:11 AM.
Balorn is offline   Reply With Quote