From: Mischa POSLAWSKY Date: Thu, 26 Oct 2023 22:11:04 +0000 (+0200) Subject: sample: reference chapter titles by first word X-Git-Tag: v1.14~3 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/f4ca24ee41993be5098b4ba675561537803c272a sample: reference chapter titles by first word Support client targeting within the document. --- diff --git a/sample.plp b/sample.plp index f824e14..be68403 100644 --- a/sample.plp +++ b/sample.plp @@ -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; }