Cool - that works now. It seems that cr & lf characters are being lost too. How do I preserve these?<br><br>I am using:<br><br>Markup('showto', '<_begin', '/\\(:showto(.*?):\\)(.*?)(\\(:showto:\\))/s', <br>"(:if auth $1:)'''[''Only Visible to $1:'']''' [[&lt;&lt;]] '''{'''[[&lt;&lt;]]$2'''}'''(:if:)");
<br><br>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.
<br><br>regards,<br><br><div><span class="gmail_quote">On 4/10/06, <b class="gmail_sendername">Patrick R. Michaud</b> <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Apr 10, 2006 at 12:52:42PM +0100, Octocias wrote:<br>> I was inserting some useful markup elsewhere in code and found the order<br>> issue cropping up again.<br>><br>> All this test markup would do is insert wiki code '[[<<]]' ... but it
<br>> won't! It translates it as a LINK to '<<'<br>><br>> Markup('breakline', '<_begin', '/\\(:breakline:\\)/', PSS("[[<<]]"));<br><br>... because less-than signs ('<') are encoded as "&lt;".
<br><br>Try:<br><br> Markup('breakline', '<[[<<]]', '/\\(:breakline:\\)/', '[[&lt;&lt;]]');<br><br>Pm<br><br></blockquote></div><br><br clear="all"><br>-- <br>Octocias<br><a href="http://www.octocias.com">
http://www.octocias.com</a>