perl: wrap long source lines to 80 characters
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 22 Mar 2018 00:17:46 +0000 (01:17 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 21 Apr 2018 16:29:28 +0000 (18:29 +0200)
perl.plp

index 0476a9e4ae14854e56aa90fce0996f40f29bf4bb..4e6222ded9f8ced28e05293ade8065a975549213 100644 (file)
--- a/perl.plp
+++ b/perl.plp
@@ -14,7 +14,8 @@ Html({
 :>
 <h1>Perl release summary</h1>
 
-<p>The most significant features introduced for recent versions of the Perl scripting language.
+<p>The most significant features introduced for recent versions of the Perl
+scripting language.
 Depending on desired compatibility you'll want to support a minimum of
 <span title="on dinosaur platforms such as Solaris 10, AIX 5.2, RHEL 3, SLES 8">v5.8</span> or
 <span title="on stable servers such as Debian wheezy, Ubuntu 12.04, CentOS 7">v5.14</span>.
@@ -27,7 +28,8 @@ for my $vernum (reverse sort keys %{$info}) {
        defined $verrow->{unstable} and next unless exists $get{v};
 
        say '<div class="section">';
-       say sprintf '<h2>%vd <small>%s</small></h2><dl>', $vernum, $verrow->{release};
+       say sprintf '<h2>%vd <small>%s</small></h2>', $vernum, $verrow->{release};
+       say '<dl>';
        for (@{ $verrow->{new} }) {
                my ($topic, $desc, $attr) = @{$_};
                if ($attr) {
@@ -47,8 +49,9 @@ for my $vernum (reverse sort keys %{$info}) {
                                        $attr->{experimental}, $title;
                        }
                        if ($attr->{feature}) {
-                               $title = sprintf('<span title="%s">feature</span>', $attr->{feature})
-                                       . (defined $title && ", $title");
+                               my $prefix = sprintf '<span title="%s">feature</span>',
+                                       $attr->{feature};
+                               my $title = join ', ', $prefix, $title // ();
                        }
                        $desc .= sprintf ' <em class="ex">(%s)</em>', $title;
                }