Perhaps idealistic CSS, but not realistic - at least for my browser support matrix. If I'm not mistaken not even IE 6 supports these pseudo selectors, and I can't see how one can hope to fare well without supporting it. Of course I see this as annoying and unfortunate, as I agree with you in theory.

chris

Jonathan Barker wrote:
Chris,

This is a job for CSS.

You are creating a list, so render your links in an unordered list, and set
the class attribute for the last item to "last" and then use a CSS recipe
for creating inline lists:

ul,li {
   display:inline;
   margin: 0;
   padding 0;
}
   li:after {
   content: ", ";
}
li.last:after {
   content: ".";
}

You may need to set any surrounding paragraphs to display inline as well if
you want the list included in the text flow.

Jonathan


-----Original Message-----
From: Chris Lewis [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 12, 2008 5:05 PM
To: users@tapestry.apache.org
Subject: T5: 5.0.8 whitespace

So this ticket has been implemented in svn:
https://issues.apache.org/jira/browse/TAPESTRY-2028

And now I need whitespace... so how can I get it back? Is there or isn't
there a way to disable this? Im using loop to output links (pagelinks),
and i have whitespace behind in the body so there is separation.
Unfortunately, it's getting stripped. Is there a workaround?

On a related note, is there a way to know if im on the last iteration of
the loop, so i could for example, follow all but the last with a ","?
This may be outside the scope of loop as currently implemented, but i
can see it being useful.

chris

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to