Re: Fwd: Re: pycategories 1.2.1 generates invalid html

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Thu, 9 Jun 2005, Joseph Reagle wrote:
> ----------  Forwarded Message  ----------
> On Thursday 09 June 2005 11:35, will guaraldi wrote:
>>> Can you give me an example of what they are supposed to be?
>>
>> Read the top of the file.
>
> Ah, it doesn't say they should be defined in config, but of course one
> could/should. In any case, that's a redherring. My point is that the
> default values do no produce valid (x)HTML and it'd be nice if they did.
> Even if the user wants to, it's not easy since valid HTML doesn't permit a
> ul to be a child of ul. *If* you want validity, I am using the following in
> my flavour (foot.html):
> 
> <ul class="categories">$categorylinks</ul></li></ul>
>
> and the defaults of in pycategories.py (or could define in my config).
>
> DEFAULT_BEGIN = r'<li><ul class="categorygroup">'
> DEFAULT_ITEM = r'<li><a href="%(base_url)s/%(fullcategory)sindex.
> %(flavour)s">%(category)s</a> (%(count)d)</li>'
> DEFAULT_END = "</ul></li>"
>
> though there's probably an easier way though I can't figure it now.

Oh!  Yeah--you're totally right.  I had no idea what you trying to get at 
in your previous emails.

I'll fix this in the next pycategories round.

/will


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.