From: bozo@clown.wustl.edu (Bozo the Anonymous Clown)
To: seth@hilco.com (Seth Golub)
Subject: Re: txt2html
Date: Fri, 6 May 94 10:01:10 -0500

Bozo wrote:
> Can you post an example text file with its html'ed output?
> That would provide a much better first glance at what it does
> without having to look through and see what the perl code does.

Sure thing. This reply will put it through some paces.


The header lines were kept separate because they looked like mail headers and I have mailmode on. The same thing applies to Bozo's quoted text. I usually have mailmode on since doesn't screw things up very often.

Paragraphs are handled ok. In fact, this one is here just to demonstrate that.

Features of txt2html

  • Groks Mosaic-style headers (like the one above)
  • Doesn't screw up mail-ish things
  • Spots preformated text sometimes
                     It just needs to have enough whitespace in the line.
            The blank lines aren't necessary.  If it sees enough
            whitespace in a line, it preformats it.  How much is enough?
            Set it yourself at command line if you want.
    

    Example of short lines

    We're the knights of the round table
    We dance whene'er we're able
    We do routines and chorus scenes
    With footwork impeccable.
    We dine well here in Camelot
    We eat ham and jam and spam a lot.

    I'll append my signature, just so you can see where in the html file it gets slapped in. The signature is everything from the end of this sentence to the </BODY> tag.


    Seth, seth@cs.wustl.edu