[pmwiki-users] sectionedit version 2.1.1 released

Karl Loncarek dh2mll at web.de
Fri Sep 22 16:06:39 CDT 2006


Marc Cooper <gmane at auxbuss.com> wrote in
news:MPG.1f7e248fde76ea09898a6 at news.gmane.org: 

> Problems.
> 
> Here are my settings:
> 
>  # only ==== works for marking the beginning of a new section. 
>  # $SectionEditWithoutHeaders = true;
>  $SectionEditAutoDepth = 5;
>  # Set the MediaWiki autosectioning style.
>  #$SectionEditMediaWikiStyle = false;
>  $SectionEditInIncludes = false;
>  include_once("$FarmD/cookbook/sectionedit.php");

Thanks for those.

> 
> These are unchanged from the version that I'm currently using, v2.0.3
> 
> 
> First, the new version removes (:*toc Table of contents...:) markup
> 
>  (:*toc Table of contents...:)
> 
> This simply doesn't display with the new version.

Please provide some sample text. Is it directly in front of ====? which
additional script handles this. 
> 
> 
> In addition, it is stripping off the <h?> tags from headings
> 
> e.g.
> 
> !!! List of all items in Marc
> 
>>>rfloat<<
> 
> was
> 
> <h3>List of all items in Marc</h3>
> <div class='rfloat' > 
> 
> becomes
> 
> <p style='margin-top: 0px;'>List of all items in Marc
> </p>
> <div class='vspace'></div><div class='rfloat' > 
> 
> 
> Also, sections defined with no space between the !'s and the title
> text lose their first character. So,
> 
>   !!Some title
> 
> displays as
> 
>   ome title
> 
> <p style="margin-top: 0px;">ome title
> </p>
> 
OK found this one. Please change line 236 of the script to the
following: $p =
preg_replace('/((?m:^)|(.*:\)))(?=!{1,'.$SectionEditAutoDepth.'})
([^!])/'
,"$1%block margin-top=0px%$2",$p); 

The ?= before !{ was missing. So with that the loosing the first
characters of a heading gets fixed. Please test and report whether it
works. I just want to wait and find out whether I can find the problem
with toc before releasing a new version. 

And I thought I finally created a bugfree version .... as always a
program will never be bugfreee... :) 

-- 
Bye
Karl (aka Klonk)





More information about the pmwiki-users mailing list