source: move highlighting setup into eval
[sheet.git] / writing.plp
index 61e9e1f7f2dc1914ac9ebe1c691f4b0640bf16a1..ee2d825e153f83203acaf74c49d7861a24557c28 100644 (file)
@@ -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;
        }