[pmwiki-users] RFC: Core candidate offerings

Patrick R. Michaud pmichaud at pobox.com
Sat Apr 1 01:03:38 CST 2006


On Sat, Apr 01, 2006 at 04:09:18PM +1200, John Rankin wrote:
> To summarise (correct me if I'm wrong)...
> [...]
> It's proposed that paragraphs would work the same way [as lists]:
> 
>     A paragraph.
> 
>     A paragraph spaced from the previous one.
>     "some markup"A paragraph not spaced from the previous one.
> 
> The alternative proposal is a blank line=paragraph approach:
> 
>     A paragraph.
> 
>     A paragraph with default space from the previous one.
> 
>     %block some style%A paragraph differently spaced from the previous one.
> 
>     A paragraph with default space again.

I should note that this "alternative proposal" as stated in the
limited form here is in fact PmWiki's status quo, and that the
proposal for an additional paragraph markup doesn't eliminate 
this part of the status quo.

> Both approaches have pluses and minuses. 
> 
> The alternative proposal would eliminate <p class='vspace'></p> between 
> consecutive <p> tags (although not between spaced list items) and use css
> to control default <p> spacing.

I think this forgets the case of:

    Here is a paragraph.

    Here is another paragraph, which leads to a list of items
    * one
    * two
    * three
    and continues on with more text immediately following the list.

So, we have to do something slightly more than eliminate the
<p class='vspace'></p> between consecutive paragraphs.  Either
that or we require the author to write

    Here is another paragraph, which leads to a list of items
    * one
    * two
    * three
    %block some style% and continues on with more text 
    immediately following the list.

in order to eliminate the vertical space that would be generated
by the <p> following the list.  (I admit this example isn't
the common case, but there are times when I've wanted and
used exactly this.)

> At this stage, my vote goes to the alternative -- it seems tidier all round
> and requires no new markup.

However, the alternative described above that eliminates vspace
tags between paragraphs would seem to have the potential of
breaking page rendering in some existing sites, especially if
there are custom skins or stylesheets in use that rely on the
existing output.

Pm




More information about the pmwiki-users mailing list