urban module: Always number of entries

This commit is contained in:
Pragmatic Software 2017-05-13 23:57:20 -07:00
parent 05f27d0c8f
commit f54587ef0a
1 changed files with 6 additions and 4 deletions

View File

@ -56,11 +56,13 @@ if ($num_entries == 0) {
print "$args: no definition found.\n";
exit;
} else {
=cut
if ($num_entries > 1 and not defined $entry) {
print "$num_entries entries:\n";
if ($num_entries > 1) {
if (defined $entry) {
print "$entry/$num_entries:\n";
} else {
print "1/$num_entries:\n";
}
}
=cut
}
if (defined $entry) {