Skip to content

Commit 7ded50c

Browse files
committed
Make code section XHTML compatible
- properly closing `img` tag and giving it an `alt` attribute - correcting doxygen generated paragraphs when using `\htmlonly`
1 parent a86bc66 commit 7ded50c

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
@@ -625,9 +625,9 @@ sub _PrintMethodBlock
625625
if (defined $comments) { print "$comments\n"; }
626626

627627
# Print collapsible source code block
628-
print "\@htmlonly\n";
628+
print "\@htmlonly[block]\n";
629629
print "<div id='codesection-$method' class='dynheader closed' style='cursor:pointer;' onclick='return toggleVisibility(this)'>\n";
630-
print "\t<img id='codesection-$method-trigger' src='closed.png' style='display:inline'><b>Code:</b>\n";
630+
print "\t<img id='codesection-$method-trigger' src='closed.png' alt='open/close icon' style='display:inline'/a> <b>Code:</b>\n";
631631
print "</div>\n";
632632
print "<div id='codesection-$method-summary' class='dyncontent' style='display:block;font-size:small;'>click to view</div>\n";
633633
print "<div id='codesection-$method-content' class='dyncontent' style='display: none;'>\n";
@@ -636,7 +636,7 @@ sub _PrintMethodBlock
636636
print "\@code\n";
637637
print "\# Number of lines of code in $method: $methodDef->{'length'}\n";
638638
print "$methodDef->{'code'}\n";
639-
print "\@endcode \@htmlonly\n";
639+
print "\@endcode \@htmlonly[block]\n";
640640
print "</div>\n";
641641
print "\@endhtmlonly */\n";
642642

0 commit comments

Comments
 (0)