Permalink
Browse files

reset global state in pod2html

otherwise multiple calls to pod2html from the same program interact badly
  • Loading branch information...
1 parent fa41f0c commit 9e08f481822757a712f970bb16f6ad936644e8f7 @moritz moritz committed Jul 5, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Pod/To/HTML.pm
View
@@ -27,6 +27,7 @@ sub escape_html(Str $str) returns Str {
#= Converts a Pod tree to a HTML document.
sub pod2html($pod) is export returns Str {
+ ($title, @meta, @indexes, @body, @footnotes) = ();
@body.push: node2html($pod);
my $title_html = $title // 'Pod document';

0 comments on commit 9e08f48

Please sign in to comment.