source: move highlighting setup into eval
[sheet.git] / writing.plp
index 69fffe2f491ee7243385ee6354a86a2807af7aa2..ee2d825e153f83203acaf74c49d7861a24557c28 100644 (file)
@@ -2,7 +2,7 @@
 
 Html({
        title => 'writing system inheritance sheet',
-       version => 'v1.1',
+       version => '1.2',
        description => [
                "Character comparison,",
                "tracking letters as they evolve from Phoenician to modern scripts.",
@@ -36,7 +36,7 @@ unless (exists $get{v}) {
 }
 
 my $scriptname = do 'writing-script.inc.pl';
-$_ = qq{<a href="/latin">$_</a>} for $scriptname->{latn} || ();
+$_ = showlink($_, "/latin") for $scriptname->{latn} || ();
 
 for (
        [phnx => 'Phoenician'],
@@ -45,7 +45,7 @@ for (
        my ($source, $title) = @$_;
        my @table = do "writing-$source.inc.pl";
        if ($! or $@) {
-               print "<h2>$title</h2>\n";
+               say "<h2>$title</h2>";
                printf "<p>Table data not found: <em>%s</em>.</p>\n", $@ || $!;
                next;
        }