X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/aaab5bb809386fe59113c7cff1341cbf532fe4e7..325da7e90ea83a856317d84934141a5313716194:/perl.plp?ds=sidebyside diff --git a/perl.plp b/perl.plp index c36f5e8..57a7dc8 100644 --- a/perl.plp +++ b/perl.plp @@ -100,15 +100,27 @@ 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; + } + my $ref = defined $attr->{name} && sprintf ' id="%s"', $attr->{name}; + say sprintf '%s
%s', $ref, $topic, $desc || '
'; + } + if (my $mods = $verrow->{modules}) { + for (@{$mods}) { + my ($name, $desc, $eg) = @{$_}; + my $ref = lc $name =~ s/::/_/gr; + $desc .= sprintf ' {%s}', Entity($_) for $eg // (); + printf '
use %s', $ref, $name; + say '
', $desc; } - say sprintf '
%s
%s', $topic, $desc || '
'; } say sprintf '
Unicode
v%s', $_ for $verrow->{unicode} || (); say '';