[pmwiki-users] XHTML strict compatible replacement for [[<<]]
Oliver Betz
list_ob at gmx.net
Thu May 26 14:44:45 CDT 2011
"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',
> '/\\[\\[<<\\]\\]/',
> "<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, 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)
More information about the pmwiki-users
mailing list