[pmwiki-users] Re: break-page.php adds blank lines

Karl Loncarek (Klonk) dh2mll at web.de
Wed Aug 24 09:54:03 CDT 2005


"Karl Loncarek (Klonk)" <dh2mll at web.de> wrote in
news:Xns96BCA1EDA6A1dh2mllwebde at 80.91.229.5: 

> Hi,
> 
> the break-page.php from http://www.pmwiki.org/wiki/Cookbook/BreakPage
> adds an additional empty line at the end of an edited section each
> time an edit is done. Any suggestions to fix this?
> 
> Bye Karl
> 

OK found it:
replace line 235
		$new['text'] = $prechunk."\n".$new['text']."\n".$postchunk;
with
		$new['text'] = $prechunk."\n".$new['text'].$postchunk;

But you should mention in the description that all the sections should 
end identically. Best would be an empty line. Alternatively "====" should 
be be preceeded by an empty line.

For the still showing e.g. "?p=2" in the URL after edit
replace line 266
		Redirect($pagename, "\$PageUrl?p=$n");
with
		Redirect($pagename, "\$PageUrl");

@Schlaefer:
would you please change that in break-page.php. I could do it myself, but 
I think I shouldn't change anything without you knowing what was changed.

Please tell me when I should change this.

Bye Karl (aka: Klonk)





More information about the pmwiki-users mailing list