[pmwiki-users] Re: recipe programming special markup

Karl Loncarek dh2mll at web.de
Sat Sep 10 15:55:30 CDT 2005

"Patrick R. Michaud" <pmichaud at pobox.com> wrote in 
news:20050910193519.GA10208 at host.pmichaud.com:

> On Sat, Sep 10, 2005 at 02:45:26PM +0000, Karl Loncarek wrote:
>> but
>> $out = "sometext\n"."!!!!!Header";
>> doesn't work also.
> This should work, so I'm guessing there must be something *else*
> happening that is causing the problem.  In the above, the '.'
> isn't needed, you could easily do 
>     $out = "sometext\n!!!!!Header";
> and get the same thing.
>> I tried also
>> $out = "sometext(:nl:)"."!!!!!Header";
>> but this doesn#t work either.
> This should've worked also, which tells me that there really must
> be something else that is causing the problem besides the placement
> of the newline.
> Pm
OK, lets use different examples (as simple as possible):

Markup('preHeader', '<include', '/(?m:^)(!{1,6})\\s?(.*)$/', "xxxxx\n$1

-> When I do this PHP seems to hang (or do some infinte loop).

Markup('preHeader', 'directives', '/(?m:^)(!{1,6})\\s?(.*)$/', "xxxxx\n$1

->This works in that way that "xxxxx" is displayed before the header. But 
the Header is not recognized or parsed anymore with the header markup!

The Resulting HTML code looks like

instead of (this is what I would like to achieve):


Can you or someone else tell me how I can achieve this?
I assume that "\n" is not the right character, but which one else???

Karl (aka Klonk)

More information about the pmwiki-users mailing list