Re: TSV to HTML

2006-06-01 Thread Brian
Dennis Lee Bieber wrote: > On 1 Jun 2006 03:29:35 -0700, "Brian" <[EMAIL PROTECTED]> declaimed the > following in comp.lang.python: > > > Thank you for that response. Your code was very helpful to me. I > > think that actually seeing how it should be done in Python was a lot > > more educational

Re: TSV to HTML

2006-06-01 Thread Scott David Daniels
Brian wrote: > One question (and this is a topic that I still have trouble getting my > arms around). Why is the text in STYLEBLOCK tripple quoted? Because triple-quoted strings can span lines and include single quotes and double quotes. -- --Scott David Daniels [EMAIL PROTECTED] -- http://mai

Re: TSV to HTML

2006-06-01 Thread Brian
Dennis, Thank you for that response. Your code was very helpful to me. I think that actually seeing how it should be done in Python was a lot more educational than spending hours with trial and error. One question (and this is a topic that I still have trouble getting my arms around). Why is

Re: TSV to HTML

2006-05-31 Thread Paddy
Brian wrote: > First let me say that I appreciate the responses that everyone has > given. > > A friend of mine is a ruby programmer but knows nothing about python. > He gave me the script below and it does exactly what I want, only it is > in Ruby. Not knowing ruby this is greek to me, and I woul

Re: TSV to HTML

2006-05-31 Thread Brian
First let me say that I appreciate the responses that everyone has given. A friend of mine is a ruby programmer but knows nothing about python. He gave me the script below and it does exactly what I want, only it is in Ruby. Not knowing ruby this is greek to me, and I would like to re-write it i

Re: TSV to HTML

2006-05-31 Thread Leif K-Brooks
Brian wrote: > I was wondering if anyone here on the group could point me in a > direction that would expllaing how to use python to convert a tsv file > to html. I have been searching for a resource but have only seen > information on dealing with converting csv to tsv. Specifically I want > to

Re: TSV to HTML

2006-05-31 Thread Dan M
> 1) in the code define a css > 2) use a regex to extract the info between tabs In place of this, you might want to look at http://effbot.org/librarybook/csv.htm Around the middle of that page you'll see how to use a delimiter other than a comma > 3) wrap the values in the appropriate tags and in

Re: TSV to HTML

2006-05-31 Thread Tim Chase
> I was wondering if anyone here on the group could point me > in a direction that would expllaing how to use python to > convert a tsv file to html. I have been searching for a > resource but have only seen information on dealing with > converting csv to tsv. Specifically I want to take the

TSV to HTML

2006-05-31 Thread Brian
I was wondering if anyone here on the group could point me in a direction that would expllaing how to use python to convert a tsv file to html. I have been searching for a resource but have only seen information on dealing with converting csv to tsv. Specifically I want to take the values and ins