[pmwiki-devel] Extra <p> when adding fieldset to form markup

Patrick R. Michaud pmichaud at pobox.com
Thu Nov 23 12:39:13 CST 2006


On Wed, Nov 22, 2006 at 02:44:47PM -0000, marc wrote:
> Hans said...
> > Wednesday, November 22, 2006, 9:47:57 AM, marc wrote:
> > 
> > > I'm tying to add fieldset markup, but when the HTML is generated the
> > > tags are surrounded by unwanted <p> tags, which invalidates the HTML.
> > 
> > <fieldset> is a blocklevel element, so perhaps try this:
> > [...]
> 
> Hi Hans,
> 
> Brilliant! Thanks a lot.

Another possibility is to add fieldset to PmWiki's understanding
of block-level elements.

    $BlockPattern .= '|fieldset';

I can probably see about making this change in the core.

> Is this written up somewhere? A search on pmwiki.org didn't unearth 
> anything.

I don't think it's written up anywhere yet, it probably needs to
be added to the information about CustomMarkup.

Pm



More information about the pmwiki-devel mailing list