[pmwiki-users] YAOI (yet another order issue)

Octocias octocias at googlemail.com
Mon Apr 10 08:31:08 CDT 2006


Cool - that works now. It seems that cr & lf characters are being lost too.
How do I preserve these?

I am using:

Markup('showto', '<_begin', '/\\(:showto(.*?):\\)(.*?)(\\(:showto:\\))/s',
"(:if auth $1:)'''[''Only Visible to $1:'']''' [[&lt;&lt;]]
'''{'''[[&lt;&lt;]]$2'''}'''(:if:)");

It sucessfully brings in multiple lines, but strips the line breaks. I've
tried various preg replaces (looking for \r\n, etc), but I'm actually acting
blindly because I don't know what is in the text to begin with.

regards,

On 4/10/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>
> On Mon, Apr 10, 2006 at 12:52:42PM +0100, Octocias wrote:
> >    I was inserting some useful markup elsewhere in code and found the
> order
> >    issue cropping up again.
> >
> >    All this test markup would do is insert wiki code '[[<<]]' ... but it
> >    won't! It translates it as a LINK to '<<'
> >
> >    Markup('breakline', '<_begin', '/\\(:breakline:\\)/', PSS("[[<<]]"));
>
> ... because less-than signs ('<') are encoded as "&lt;".
>
> Try:
>
>     Markup('breakline', '<[[<<]]', '/\\(:breakline:\\)/', '[[&lt;&lt;]]');
>
> Pm
>
>


--
Octocias
http://www.octocias.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060410/0aac5f4e/attachment.html 


More information about the pmwiki-users mailing list