[pmwiki-users] $WikiStyle Block formating
Paul E. Bloch
paul at cs.uoregon.edu
Thu Mar 25 16:50:23 CDT 2010
I have this style defined in my config.php:
$WikiStyle['eg']['background-color']='#EEFFCC' ;
$WikiStyle['eg']['padding-left']='40px' ;
$WikiStyle['eg']['font-family']='monospace' ;
$WikiStyle['eg']['white-space']='pre' ;
$WikiStyle['eg']['apply']='block' ;
I want to use it as:
>>eg<<
11111111111111111
11111111111111
111111111111
1111111111111
>><<
The problem is that the <div> with my 'eg' style, has a <p> inside, so I don't get monospaced fonts and there is extra space (margin: 1em) before the first line.
<div class='vspace'></div><div style='background-color: #EEFFCC; padding-left: 40px; font-family: monospace; white-space: pre;' >
<p>11111111111111111
11111111111111
111111111111
1111111111111
</p></div>
</div>
How do I stop the <p> from being inserted, or perhaps better, how would I add styling for the <p> elements? I thought the
$WikiStyle['eg']['apply']='block' ;
made the style apply to all block type tags; <div> as well as <p>.
Paul Bloch
More information about the pmwiki-users
mailing list