Re: htmlfill removes last closing tag?
Ian Bicking <[email protected]>
| Newsgroups | gmane.comp.python.formencode |
|---|---|
| Message-ID | <[email protected]> |
Graham Stratton wrote:
> Hi,
>
> htmlfill keeps eating my last close tag if it isn't follow by a
> newline. So:
>
> >>> htmlfill.render('<html><body></body></html>',{},{})
> '<html><body></body>'
>
> >>> htmlfill.render('<html><body></body></html>\n',{},{})
> '<html><body></body></html>'
>
> >>> htmlfill.render('<select name="fred"><option value=1>No Choice</
> option></select>',{},{})
> '<select name="fred"><option value="1">No Choice</option>'
>
> >>> htmlfill.render('<input type="text">',{},{})
> '<input type="text" value="">'
>
> Is this a bug or am I not using it correctly?
A bug of course ;) It's fixed in the trunk.
--
Ian Bicking | [email protected] | http://blog.ianbicking.org
| Write code, do good | http://topp.openplans.org/careers
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/