Even better! Now I can drop the regular expression that did the same thing :)
Thanks! On 9/26/07, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > Robert Dailey wrote: > > > Hmm, ElementTree.tostring() also adds a space between the last character > > of the element name and the />. Not sure why it is doing this. > > ET is commonly used to generate (X)HTML fragments, and that space > provides partial HTML compatibility. > > since the default serializer never generates CDATA sections, it should > be safe to simply do a text.replace(" />", "/>") on the resulting string. > > </F> > > -- > http://mail.python.org/mailman/listinfo/python-list >
-- http://mail.python.org/mailman/listinfo/python-list