/[Frey]/trunk/lib/Frey/Dumper.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Dumper.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 359 by dpavlin, Sun Nov 16 16:35:48 2008 UTC revision 360 by dpavlin, Sun Nov 16 16:44:20 2008 UTC
# Line 28  sub unroll { Line 28  sub unroll {
28    
29          $out .= qq|<li${title}>|;          $out .= qq|<li${title}>|;
30          my $mark = $key || '&diams;';          my $mark = $key || '&diams;';
31          $out .= $ref && $ref !~ m{^(ARRAY|HASH)$} ? qq|<a href="/$ref" target="blessed" title="$ref">$mark</a>| : $key;          $out .= $ref && $ref !~ m{^(ARRAY|HASH)$} ? qq|<a href="/$ref" class="blessed" target="blessed" title="$ref">$mark</a>| : $key;
32    
33          if ( ref($data) eq 'ARRAY' ) {          if ( ref($data) eq 'ARRAY' ) {
34                  $out .= " &darr;</li>" if $key;                  $out .= " &darr;</li>" if $key;
# Line 42  sub unroll { Line 42  sub unroll {
42                  $out .= "</ul>\n";                  $out .= "</ul>\n";
43          } else {          } else {
44                  $out .= " &rarr; " if $key;                  $out .= " &rarr; " if $key;
45                  if ( $data =~ m{<(\w+)>.+</\1>} ) {                  if ( $data =~ m{<(\w+).*>.+</\1>} ) {
46                          $out .= qq|<div style="background: #eee; color: #000">$data</div></li>|;                          $out .= qq|<div style="background: #eee; color: #000" title="HTML">$data</div></li>|;
47                  } else {                  } else {
48                          $out .= "<span>" . $self->html_dump( $data ) . "</span></li>";                          $out .= "<span>" . $self->html_dump( $data ) . "</span></li>";
49                  }                  }

Legend:
Removed from v.359  
changed lines
  Added in v.360

  ViewVC Help
Powered by ViewVC 1.1.26