Mercurial > genshi > mirror
diff markup/output.py @ 20:cc92d74ce9e5 trunk
Fix tests broken in [20].
author | cmlenz |
---|---|
date | Mon, 19 Jun 2006 16:38:50 +0000 |
parents | 704f10b06507 |
children | 3c1a022be04c |
line wrap: on
line diff
--- a/markup/output.py +++ b/markup/output.py @@ -37,7 +37,7 @@ """Produces XML text from an event stream. >>> from markup.builder import tag - >>> elem = tag.DIV(tag.A(href='foo'), tag.BR, tag.HR(noshade=True)) + >>> elem = tag.div(tag.a(href='foo'), tag.br, tag.hr(noshade=True)) >>> print ''.join(XMLSerializer().serialize(elem.generate())) <div><a href="foo"/><br/><hr noshade="True"/></div> """ @@ -119,7 +119,7 @@ """Produces HTML text from an event stream. >>> from markup.builder import tag - >>> elem = tag.DIV(tag.A(href='foo'), tag.BR, tag.HR(noshade=True)) + >>> elem = tag.div(tag.a(href='foo'), tag.br, tag.hr(noshade=True)) >>> print ''.join(HTMLSerializer().serialize(elem.generate())) <div><a href="foo"></a><br><hr noshade></div> """