Skip to content

Commit

Permalink
Fix links on html_basic report.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcj committed Nov 17, 2012
1 parent cea38b9 commit 3286afb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/Devel/Cover/Report/Html_basic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ sub report
for (@{$options->{file}})
{
$R{file} = $_;
$R{file_html} = "$options->{outputdir}/$R{filenames}{$_}.html";
$R{file_link} = "$R{filenames}{$_}.html";
$R{file_html} = "$options->{outputdir}/$R{file_link}";
my $show = $options->{show};
print_file;
print_branches if $show->{branch};
Expand Down Expand Up @@ -683,7 +684,7 @@ $Templates{branches} = <<'EOT';
<a name="[% branch.ref %]"> </a>
<tr>
<td class="h">
<a href="[% R.file_html %]#[% branch.number %]">[% branch.number %]</a>
<a href="[% R.file_link %]#[% branch.number %]">[% branch.number %]</a>
</td>
[% FOREACH part = branch.parts %]
<td class="[% part.class %]"> [% part.text %] </td>
Expand Down Expand Up @@ -719,7 +720,7 @@ $Templates{conditions} = <<'EOT';
<a name="[% condition.ref %]"> </a>
<tr>
<td class="h">
<a href="[% R.file_html %]#[% condition.number %]">[% condition.number %]</a>
<a href="[% R.file_link %]#[% condition.number %]">[% condition.number %]</a>
</td>
[% FOREACH part = condition.parts %]
<td class="[% part.class %]"> [% part.text %] </td>
Expand Down Expand Up @@ -759,7 +760,7 @@ $Templates{subroutines} = <<'EOT';
[% FOREACH sub = subs %]
<tr>
<td class="h">
<a href="[% R.file_html %]#[% sub.line %]">[% sub.line %]</a>
<a href="[% R.file_link %]#[% sub.line %]">[% sub.line %]</a>
</td>
[% IF R.options.show.subroutine %]
<td class="[% sub.class %]"> [% sub.count %] </td>
Expand Down

0 comments on commit 3286afb

Please sign in to comment.