Skip to content

Commit

Permalink
[smartlinks] remove broken HTML links
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Oct 11, 2010
1 parent 968479c commit 7249b4b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions util/Text-SmartLinks/lib/Text/SmartLinks.pm
Expand Up @@ -650,19 +650,10 @@ sub gen_code_snippet {
}

my $nlines = $to - $from + 1;
my $html_file = $file;
$html_file =~ s{t/}{};
my $simple_html = $html_file . ".simple.html";
my $full_html = $html_file . ".html";
my $simple_snippet_id = "simple_$snippet_id";

my $html = <<"_EOC_";
<div class="smartlink">
<p class="smartlink-file">From <code>$file</code> lines <code>$from&ndash;$to</code>$stat:<span id="smartlink_skip_${snippet_id}"> <a href="#smartlink_skipto_${snippet_id}">(skip)</a></span>
- <a href="#"
onclick="return toggle_hilite('$simple_snippet_id','/~azawawi/html/$simple_html')"><img src="hilite-small.png" border="0" width="16" height="16"></a> <a href="/~azawawi/html/$full_html" target="_blank"><img src="hilite-full.png" border="0" width="22" height="22"></a>
</p>
<div id="smartlink_${snippet_id}" class="smartlink_snippet" style="display:none">
$snippet
</div>
Expand Down

0 comments on commit 7249b4b

Please sign in to comment.