X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/014511a96f19e407f789bd028937691275681902..58fadc557513b926e77b3b0226dd5c43dc9efce8:/sample.plp diff --git a/sample.plp b/sample.plp index 6de2b98..be68403 100644 --- a/sample.plp +++ b/sample.plp @@ -6,11 +6,11 @@ Html({ title => "unicode sampler", version => '2.0', stylesheet => [qw'light dark mono red'], - data => $textinc, + data => [$textinc], }); open my $source, '<', $textinc - or die "Could not open text at $textinc: $!\n"; + or Abort("Could not open text at $textinc", 501, $!); local $/ = "\n\n"; my $top = readline $source; @@ -22,7 +22,7 @@ print $intro; while (my $p = readline $source) { EscapeHTML($p); - $p =~ s{ \A (\N+:) \n\Z }{

$1

}x; + $p =~ s{ \A ((\pL+) \N*:) \n\Z }{

$1

}x; print $p; }