[pmwiki-users] table formatting problem
Peter & Melodye Bowers
pbowers at pobox.com
Fri Nov 23 15:19:46 CST 2007
> > DaveG wrote:
> > > DaveG wrote:
> > >> sti at pooq.com wrote:
> > >>> That makes me suspicious that it may be the Markup Extensions
> recipe.
> > >>> I've had
> > >>> trouble in the past with its rewriting of the markup for '!'. Are
> you
> > >>> using
> > >>> that recipe, by any chance?
> > >> I don't use it. Looking at the cookbook page
> > >> (http://www.pmwiki.org/wiki/Cookbook/MarkupExtensions) though, the
> > >> "!run-in head!text" markup looks a likely culprit.
> > >>
> > >> It looks like you can disable specific markup by:
> > >> $MarkupExtensions['item'] = false;
> > >>
> > >> If run-in-head is the culprit, then this should disable it:
> > >> $MarkupExtensions['^!!'] = false;
> > >>
> > >
> > > Out of interest, did you try this?
> >
> > Its not clear who this question is directed at. The original poster of
> the
> > problem wasn't using MarkupExtensions, so they didn't need to try it.
>
>...
>
> Disabling the '^!!' extension solves the problem.
I found the problem -- if this line:
===(snip)===
Markup('!!vspace', '<!vspace', "/^(!(?>[^!\n]+![^\n]+)\n)/m",
'$1<:vspace>');
===(snip)===
Is changed to this (note the addition of \n -- it was going multi-line in a
context where it should have stayed on the same line):
===(snip)===
Markup('!!vspace', '<!vspace', "/^(!(?>[^!\n]+![^\n]+)\n)/m",
'$1<:vspace>');
===(snip)===
Then my problem is solved. Whether that breaks something else I don't know
-- this is my first delving into source and so I don't have a big picture...
How does a change like this (if it's the right change) get approved? Thru
the maintainer of the recipe? Or just uploaded...?
-Peter
More information about the pmwiki-users
mailing list