X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/a448623d4ae3e8fb391dab7359a41043173c16e8..45a41242594517a044099d34be1868be1ddabe6e:/perl.plp diff --git a/perl.plp b/perl.plp index c36f5e8..02d0348 100644 --- a/perl.plp +++ b/perl.plp @@ -100,15 +100,18 @@ for my $vernum (reverse sort keys %{$info}) { if ($attr->{experimental}) { $title = sprintf '%s', $attr->{experimental}, $title; + $attr->{name} //= $attr->{experimental}; } if ($attr->{feature}) { my $prefix = sprintf 'feature', $attr->{feature}; $title = join ', ', $prefix, $title // (); + $attr->{name} //= $attr->{feature}; } - $desc .= sprintf ' (%s)', $title; + $desc .= sprintf ' (%s)', $title if $title; } - say sprintf '
%s
%s', $topic, $desc || '
'; + my $ref = defined $attr->{name} && sprintf ' id="%s"', $attr->{name}; + say sprintf '%s
%s', $ref, $topic, $desc || '
'; } say sprintf '
Unicode
v%s', $_ for $verrow->{unicode} || (); say '';