Skip to content

Commit b470a10

Browse files
authored
Merge pull request #10 from albert-github/feature/bug_code_insert
Make code section XHTML compatible
2 parents 212aa94 + 7c4b2f0 commit b470a10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Doxygen/Filter/Perl.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,9 @@ sub _PrintMethodBlock
638638
if (defined $comments) { print "$comments\n"; }
639639

640640
# Print collapsible source code block
641-
print "\@htmlonly\n";
641+
print "\@htmlonly[block]\n";
642642
print "<div id='codesection-$method' class='dynheader closed' style='cursor:pointer;' onclick='return toggleVisibility(this)'>\n";
643-
print "\t<img id='codesection-$method-trigger' src='closed.png' style='display:inline'><b>Code:</b>\n";
643+
print "\t<img id='codesection-$method-trigger' src='closed.png' alt='open/close icon' style='display:inline'/> <b>Code:</b>\n";
644644
print "</div>\n";
645645
print "<div id='codesection-$method-summary' class='dyncontent' style='display:block;font-size:small;'>click to view</div>\n";
646646
print "<div id='codesection-$method-content' class='dyncontent' style='display: none;'>\n";
@@ -649,7 +649,7 @@ sub _PrintMethodBlock
649649
print "\@code\n";
650650
print "\# Number of lines of code in $method: $methodDef->{'length'}\n";
651651
print "$methodDef->{'code'}\n";
652-
print "\@endcode \@htmlonly\n";
652+
print "\@endcode \@htmlonly[block]\n";
653653
print "</div>\n";
654654
print "\@endhtmlonly */\n";
655655

0 commit comments

Comments
 (0)