[pmwiki-users] >>pre<< adds extra lines???
Petko Yotov
5ko at 5ko.fr
Sat Jan 23 16:12:40 CST 2010
On Saturday 23 January 2010 21:40:13, dan mcmullen wrote :
> on further examination, the behavior seems to be that any number of
> blank lines in >>pre<< markup appear as two lines in the output. and an
> extra blank line appears at the beginning of the >>pre<< output.
The >>pre<< thing is just applying a CSS class on a div block, and the block
it is what the markup engine produced.
Notably, the markup engine considers 1 or more empty lines as one (1)
paragraph break, and usually there is an invisible <div class='vspace'></div>
between the 2 paragraphs.
To preserve all whitespaces and all empty lines, you should use the [@...@]
markup:
[@
abc def
ghi jkl
@]
If >>pre<< is required, instead of [@...@], you can still use it. To prevent
the paragraph break, you can have on the empty line the non-breakable space
, or even the "empty space" [==], like this:
>>pre<<
abc
[==]
[==]
def
>><<
Thanks,
Petko
More information about the pmwiki-users
mailing list