[Pmwiki-users] vspace paragraphs

John Rankin john.rankin
Thu Nov 4 15:31:35 CST 2004


On Friday, 5 November 2004 11:15 AM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>On Fri, Nov 05, 2004 at 10:36:10AM +1300, John Rankin wrote:
>> On Friday, 5 November 2004 2:24 AM, Val Sharp <val at valsharp.co.uk> wrote:
>> >So, even in 'standards mode', there's no risk of the
>> ><p class='vspace'></p> solution not working ... it's just contrary to
>> >the intended use of the element.
>> >
>> Dumb question coming...
>> 
>> Can we just change p to div? (And perhaps change 'vspace' to
>'vspacer')
>
>Only if we're reasonably certain that either (1) PmWiki won't generate
>multiple <div class='vspacer'></div> tags in a row, or (2) the presence
>of these multiple divs don't result in multiple whitespace.
>
>In PmWiki 1, one of the advantages of <p></p> was that it didn't matter
>how many of them there were--i.e., <p></p><p></p><p></p> still resulted in
>only one paragraph space.  IIRC, some browsers had trouble with collapsing
>multiple <div class='vspace'></div> segments together, which generated
>more vertical space than intended.
>
>PmWiki 2 *may* now be smart enough to make sure that multiple vspace's
>aren't generated in a row, but I can't guarantee it at this point.
>But changing to <div class='vspace'></div>, if it works, would certainly 
>eliminate a lot of the "can we get rid of the extra <p> tag" comments.
>(I don't know if it people would just switch to "can we get rid of the
>extra <div> tag" instead, but it'd be more defensible.)
>
>Pm
>
One defence might be that it opens a door to a new directive:

    (:spacer v=n:)

to control the amount of vertical space, if the need arises.

-- 
JR
--
John Rankin





More information about the pmwiki-users mailing list