[pmwiki-users] Empty <p> when using %defiine%. Why?
Patrick R. Michaud
pmichaud at pobox.com
Wed Jun 7 14:06:34 CDT 2006
On Wed, Jun 07, 2006 at 07:21:50PM +0100, marc wrote:
> Hi,
>
> When a page starts with a %define% you get:
>
> <!--PageText-->
> <div id='wikitext'>
> <p>
> </p>
> [...]
> I guess there must be a reason for this <p> being there, but I can't
> find what that reason might be.
It's a bug, although it's one I thought I already fixed.
However, I can't find any evidence of fixing it in PITS
or in the ChangeLog, so I must not have fixed it yet. :-(
PmWiki generates the empty paragraph because there's a
non-blank markup line (the wikistyle) that isn't embedded in
any other text block. So, it sees it as normal text and
thinks it's a paragraph and generates the <p>...</p>.
I'm guessing I need a special markup rule to recognize
lines containing nothing but wikistyles and not generate
output for them (although they still need to be processed).
Entered at PITS #00753, I'll see if I can fix it for 2.1.11.
Pm
More information about the pmwiki-users
mailing list