Changeset 13827


Ignore:
Timestamp:
01/26/12 03:07:18 (4 weeks ago)
Author:
KipLubliner
Message:

Item11437: Annotate ---+ package line with the visibility from System.PublishedAPI. AND update the test case too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/Foswiki/IncludeHandlers/doc.pm

    r13665 r13827  
    3232    Foswiki::Func::setPreferencesValue( 'DOC_TITLE', '---++ !! !%TOPIC%' ); 
    3333    $class =~ s/[a-z]+://;    # remove protocol 
    34     $class ||= 'Foswiki';         # provide a reasonable default 
     34    $class ||= 'Foswiki';     # provide a reasonable default 
    3535#    return '' unless $class && $class =~ /^Foswiki/; 
    3636    $class =~ s/[^\w:]//g; 
     
    8181                    $isa = undef; 
    8282                } 
    83 #               This changes breaks the unit tests.  If the proposal is accepted, then I will change again and update the unit tests. 
    84 #                $line =~ s/^---\+(?:!!)?\s+package\s*(.*)/---+ =$visibility package= $1/; 
    85                 $line =~ s/^---\+(?:!!)?\s+package\s*(.*)/---+ =package= $1/; 
     83                $line =~ s/^---\+(?:!!)?\s+package\s*(.*)/---+ =$visibility package= $1/; 
    8684            } 
    8785            else { 
     
    204202    close($PMFILE); 
    205203 
    206         while (@summary) { 
    207                 if ($summary[0] =~ /^\s*$/) { 
    208                         shift @summary; 
    209                 } else { 
    210                         last; 
    211                 } 
    212         } 
     204    while (@summary) { 
     205        if ($summary[0] =~ /^\s*$/) { 
     206            shift @summary; 
     207        } else { 
     208            last; 
     209        } 
     210    } 
    213211    if (!@summary) { 
    214212        return ''; 
Note: See TracChangeset for help on using the changeset viewer.