Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add no-toc class to pod-body
  • Loading branch information
gfldex committed Jul 8, 2016
1 parent 236e497 commit 0bf23d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion META.info
@@ -1,6 +1,6 @@
{
"name" : "Pod::To::HTML",
"version" : "0.1.3",
"version" : "0.1.4",
"description" : "Convert Perl 6 Pod to HTML",
"depends" : ["URI"],
"provides" : {
Expand Down
4 changes: 2 additions & 2 deletions lib/Pod/To/HTML.pm
Expand Up @@ -173,8 +173,8 @@ sub pod2html($pod, :&url = -> $url { $url }, :$head = '', :$header = '', :$foote
!! () ),
( $subtitle.defined ?? "<p class='subtitle'>{$subtitle}</p>"
!! () ),
( do-toc($pod) // () ),
'<div class="pod-body">,@body,'</div>',
( my $ToC := do-toc($pod) // () ),
'<div class="pod-body', ($ToC ?? '' !! ' no-toc'), '">',@body,'</div>',
do-footnotes(),
$footer,
'</body>',
Expand Down

0 comments on commit 0bf23d3

Please sign in to comment.