Changeset 13827
- Timestamp:
- 01/26/12 03:07:18 (4 weeks ago)
- File:
-
- 1 edited
-
trunk/core/lib/Foswiki/IncludeHandlers/doc.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/lib/Foswiki/IncludeHandlers/doc.pm
r13665 r13827 32 32 Foswiki::Func::setPreferencesValue( 'DOC_TITLE', '---++ !! !%TOPIC%' ); 33 33 $class =~ s/[a-z]+://; # remove protocol 34 $class ||= 'Foswiki'; # provide a reasonable default34 $class ||= 'Foswiki'; # provide a reasonable default 35 35 # return '' unless $class && $class =~ /^Foswiki/; 36 36 $class =~ s/[^\w:]//g; … … 81 81 $isa = undef; 82 82 } 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/; 86 84 } 87 85 else { … … 204 202 close($PMFILE); 205 203 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 } 213 211 if (!@summary) { 214 212 return '';
Note: See TracChangeset
for help on using the changeset viewer.
