From: Robert 'phaylon' Sedlacek Date: Wed, 20 Jun 2012 18:53:19 +0000 (+0000) Subject: turn a list of more than 5 elements into a real html list instead of just a comma... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=861950c2bb6aad5228871684a27e0bf908e70857;p=scpubgit%2FJSON-Tree-Viewer.git turn a list of more than 5 elements into a real html list instead of just a comma separated string --- diff --git a/br.pl b/br.pl index 2c63bd1..2e30991 100644 --- a/br.pl +++ b/br.pl @@ -210,9 +210,11 @@ sub render_el { } elsif ($whole->{name}) { return $self->link_to($whole->{name}, $key); } - $part = '(complex)'; } - return join(', ', @$part); + return join ', ', @$part + if @$part < 5; + use HTML::Tags; + return ; } if (ref($part) eq 'HASH') { if ($whole->{key}) {