[pmwiki-users] RFC: Core candidate offerings

Patrick R. Michaud pmichaud at pobox.com
Fri Mar 31 17:29:37 CST 2006


On Fri, Mar 31, 2006 at 04:55:02PM -0600, Ben Wilson wrote:
> 
> In some of my wikis, I just zeroed out the variable that sets vspace,
> then added padding-bottom to paragraphs w/in #wikitext. I get all of
> the space I want without having superfluous HTML tags. (I also
> text-indent: 1em;)

Out of curiosity, how do you get blank lines between list items?

If your answer is "add padding-bottom to <li>", then how would
you generate a list itesm without vertical space?

> To resolve the problem as above, where there is a left-justified
> followed by center-justified sans intervening vertical space, you
> could have:
> 
> %nopad% Res ipsa loquiter sed quid in inferno decit.
> %center% Quid sed in loquiter res ipsa deceit
> 
> p { padding-bottom: 1.5em; }
> p.nopad { padding-bottom: 0; }
> 
> (I've not tested the above. I think %style% is a span, and text-align
> is not very effective in spans. In the alternative, >>style<< would
> probably be a better answer.)

Wikistyles with apply=block or apply=p will modify the <p> tag
instead of producing a span.

> As there appears to be a
> ready solution to the problem without adding superfluous markup, I
> still do not see a reason to add alternative paragraph markups to the
> core.

At the moment, I disagree that there is a 'ready solution' --
I think the solution you've described just pushes the complexity
into different areas, or breaks the model that PmWiki has (namely,
blank lines do not mean "paragraph", they mean "vertical space",
which is usually and exactly what the author intended them to mean).

Pm




More information about the pmwiki-users mailing list