printing indented html code

2005-06-24 Thread Lowell Kirsh
Is there a module or library anyone knows of that will print html code indented? What I'd like would be for a function or class which works like this: htmlIndent(sys.stdout, 'htmlheadfoobar/head...') and will print somethinkg like this to stdout: html head foobar /head ... My

Re: printing indented html code

2005-06-24 Thread Lowell Kirsh
Thanks. At a glance, that looks like it's what I'm looking for. Lowell TechBookReport wrote: Lowell Kirsh wrote: Is there a module or library anyone knows of that will print html code indented? What I'd like would be for a function or class which works like this: htmlIndent(sys.stdout,

Re: printing indented html code

2005-06-24 Thread Konstantin Veretennicov
On 6/24/05, Lowell Kirsh [EMAIL PROTECTED] wrote: Is there a module or library anyone knows of that will print html code indented? Depends on whether you have to deal with xhtml, valid html or just any, possibly invalid, pseudo-html that abounds on the net. Here's an example of (too) simple

Re: printing indented html code

2005-06-24 Thread Lowell Kirsh
Looks good. I'll give it a try. Konstantin Veretennicov wrote: On 6/24/05, Lowell Kirsh [EMAIL PROTECTED] wrote: Is there a module or library anyone knows of that will print html code indented? Depends on whether you have to deal with xhtml, valid html or just any, possibly invalid,