"Patrick R. Michaud" wrote:

>> What's the preferred way to create such a clear:something element (a
>> "p" would be useful) with PmWiki markup?

[...]

>Perhaps override [[<<]] to have this instead:
>
>    Markup('[[<<]]', 'inline',
>        '/\\[\\[&lt;&lt;\\]\\]/',
>        "<br style='clear: both' />");

Works, thanks!

>To really make it a paragraph, perhaps:
>
>    $WikiStyleCSS[] = 'clear';
>
>and then
>
>    %lfloat% Attach:image1.jpg
>    some text \\
>    more text
>
>    %p clear=left%
>    %lfloat% Attach:image2.jpg
>    This image shall be positioned below the first image

This works only if there is a character (space, &nbsp; or \\ work
also) after the %p clear=left%. The vertical distance with only a
space is smaller, but a space is hard to see / maintain in the editor
window.

BTW: What about adding 'clear' to the standard elements?

Thanks for the solutions!

Oliver
-- 
Oliver Betz, Muenchen (oliverbetz.de)


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to