Re: "Empty" text

2007-07-10 Thread Jan Danielsson
André wrote: [---] >>I understand the opitmization ElementTree is performing; but it seems >> there are cases when it is not the proper thing to do. Is it possible to >> force ElementTree to output the XHTML code I need it to? > > I ran into the same problem and a workaround I found was to us

Re: "Empty" text

2007-07-10 Thread André
On Jul 8, 5:23 pm, Jan Danielsson <[EMAIL PROTECTED]> wrote: > Hello all, > >I'm using mod_python+ElementTree to build XHTML pages. But I stumbled > across this problem: > > > def foo(req, desc = None): > >... > >tr = ET.SubElement(tbl, "tr") >th = ET.SubElement

Re: "Empty" text

2007-07-10 Thread Nick Craig-Wood
Miles <[EMAIL PROTECTED]> wrote: > On Jul 9, 4:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > > Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > > On Sun, 08 Jul 2007 22:23:20 +0200, Jan Danielsson wrote: > > > >Firefox is very unhappy about the textarea not having separate > > >

Re: "Empty" text

2007-07-09 Thread Miles
On Jul 9, 4:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > On Sun, 08 Jul 2007 22:23:20 +0200, Jan Danielsson wrote: > > >Firefox is very unhappy about the textarea not having separate > > > opening and a closing tags. i.e. I need th

Re: "Empty" text

2007-07-09 Thread Nick Craig-Wood
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Sun, 08 Jul 2007 22:23:20 +0200, Jan Danielsson wrote: > > >The problem is that this generates the following code: > > > > > > Description > > > > > > > > > >

Re: "Empty" text

2007-07-08 Thread Marc 'BlackJack' Rintsch
On Sun, 08 Jul 2007 22:23:20 +0200, Jan Danielsson wrote: >The problem is that this generates the following code: > > > Description > > > > > >Firefox is very unhappy about the textarea not having separate > openi

"Empty" text

2007-07-08 Thread Jan Danielsson
Hello all, I'm using mod_python+ElementTree to build XHTML pages. But I stumbled across this problem: def foo(req, desc = None): ... tr = ET.SubElement(tbl, "tr") th = ET.SubElement(tr, "th") th.text = "Description" td = ET.SubElement(tr, "td") ta = ET.