countries: indicate code references in description
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 1 Feb 2015 09:55:24 +0000 (10:55 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sun, 1 Feb 2015 17:34:57 +0000 (18:34 +0100)
countries.plp

index 83a98f4..09948dd 100644 (file)
@@ -41,6 +41,7 @@ my $cc = do 'countries.inc.pl';
                        }
                        else {
                                $_ = EscapeHTML($short || $name);
+                               $name .= " → $ref" if $ref and $ref ne $code;
                        }
                        printf "\n".'<td class="%s" title="%s">%s',
                                $_ ? 'X '.$class : '', EscapeHTML("$code: $name"), $_;