turn a list of more than 5 elements into a real html list instead of just a comma...
Robert 'phaylon' Sedlacek [Wed, 20 Jun 2012 18:53:19 +0000 (18:53 +0000)]
br.pl

diff --git a/br.pl b/br.pl
index 2c63bd1..2e30991 100644 (file)
--- 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 <ul>, (map { (<li>, $_, </li>) } @$part), </ul>;
   }
   if (ref($part) eq 'HASH') {
     if ($whole->{key}) {