[pmwiki-users] Change the Break Clear=all

Patrick R. Michaud pmichaud at pobox.com
Thu Mar 2 15:27:29 CST 2006


On Thu, Mar 02, 2006 at 04:09:38PM -0500, Miller, Joshua wrote:
> -----Original Message-----
> From: Patrick R. Michaud [mailto:pmichaud at pobox.com] 
> > On Thu, Mar 02, 2006 at 03:36:59PM -0500, Miller, Joshua wrote:
> > >   When I use [<<] I get this in the code: <br clear='all' />
> > >   How do I change it so it just outputs <br />
> > 
> > Why not just use \\ at the end of a markup line?  I.e., instead of
> >    This is some [[<<]] broken text
> > use
> >    This is some \\
> >    broken text
>
> Ok that didn't help.  I'm trying to write some PHP code like this:
> 
>         $rcpage = ReadPage($pagename,"");
>         $pos=strpos($rcpage['text'],"(:\$CurrentFeaturesOutput:)");
>         $len=strlen("(:\$CurrentFeaturesOutput:)");
>         $before=substr($rcpage['text'],0,$pos+$len);
>         $after=substr($rcpage['text'],$pos+$len);
>         $rcpage['text'] = $before.
>            /*   "\n$$$$\$default".  pog? */
> 		"\n!"
> 		.StripCSlashes($_GET["header"])
> 		."\n"
> 		.StripCSlashes($_GET['desc'])
> 		."/\\"					<<<<<<< This is
> my problem
> 		."\n"
> 		."&nbsp;&nbsp;[["
> 		.($_GET["link"])
> 		."| &raquo;Click here for more]]"
> 		.$after;
>         WritePage($pagename,$rcpage);

Oh, I see.  In order to get two double slashes in the markup, you
have to have four of them in the PHP code.   (PHP treats "\\" as
being a single backslash character.)

So, change the "/\\" to "/\\\\" and you should get something closer
to what you want.  :-)

Pm




More information about the pmwiki-users mailing list