I haven't really used HTMLTag, but I can't figure out a reason for that
%r -- %s certainly seems correct. I've made this change in CVS.
On Mon, 2002-11-11 at 20:28, David McNab wrote:
> Hi,
>
> I've just started using WebWare in CGI mode, and find the HTMLTag class to be
> a worthy foundation for page generation.
>
> But there's something strange in the pprint() method.
> When it's printing out a child item that's pure text, the text is formatted
> with '%r' instead of '%s'.
>
> Is there any reason for this?
>
> It's making my pages look strange, with all text items on the generated html
> page enclosed in quotes.
>
> I've got around this by subclassing HTMLTag and overriding the pprint()
> routine with one that replaces:
>
> wr('%s %r\n' % (spacer, child))
> with
> wr('%s %s\n' % (spacer, child))
>
> That way, the text strings on the page get generated as they should.
>
> Is the original '%r' formatting a bug or a feature?
>
> Cheers
> David
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss