Skip to content

Commit

Permalink
Item13897: Fixed heading formatting issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Oct 7, 2016
1 parent f798fe2 commit 2e93bc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/Foswiki/IncludeHandlers/doc.pm
Expand Up @@ -210,14 +210,15 @@ sub INCLUDE {
)
= @{ $ctxSection->{lexemes} }
{qw(methodAccess methodType methodName methodPriv)};
$methodName = Foswiki::entityEncode($methodName);
if ( $publicOnly && $methodPriv ) {
$suppressedMethodLevel = $secDepth;
}
else {
# Starting a non-suppressed method section.
$suppressedMethodLevel = 0;
$pod .=
"\n$secDef =$methodAccess$methodType= ==$methodName==\n";
"\n$secDef =[[$methodAccess$methodType]]= ==$methodName==\n";
}
}
else { # Just plain simple heading.
Expand Down

0 comments on commit 2e93bc1

Please sign in to comment.