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

Patrick R. Michaud pmichaud at pobox.com
Fri Nov 24 13:28:34 CST 2006


On Fri, Nov 24, 2006 at 01:34:22PM -0000, marc wrote:
> Patrick R. Michaud said...
> > 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:
> > > > [...]
> > 
> > Another possibility is to add fieldset to PmWiki's understanding
> > of block-level elements.
> > 
> >     $BlockPattern .= '|fieldset';
> 
> I tried this expecting it to manage the markup, but, just to be clear, 
> it simply allows the removal of the <:block> syntax; I still have to 
> manage the markup. Is that correct?

That's correct.  $BlockPattern just tells PmWiki which markups
are block markups and therefore should not be placed inside of
a <p>...</p> sequence.    It doesn't by itself enable any new
markups.

Pm



More information about the pmwiki-devel mailing list