X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/2aa0942b62a6812b687b293f40775d004be6cbe1..f4ca24ee41993be5098b4ba675561537803c272a:/sample.plp diff --git a/sample.plp b/sample.plp index 33d06e9..be68403 100644 --- a/sample.plp +++ b/sample.plp @@ -10,7 +10,7 @@ Html({ }); 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; }