gbranden pushed a commit to branch master
in repository groff.
commit 3cae64e418a69d4eee31a03c5cf2940e0e951eb7
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Aug 3 04:37:31 2025 -0500
[afmtodit]: Improve diagnostic message.
* src/utils/afmtodit/afmtodit.pl: Fix up new diagnostic message with
proper white space and correct grammar when only one duplicate mapping
is encountered.
---
ChangeLog | 6 ++++++
src/utils/afmtodit/afmtodit.pl | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 042f8215e..c48b23afb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-08-03 G. Branden Robinson <[email protected]>
+
+ * src/utils/afmtodit/afmtodit.pl: Fix up new diagnostic message
+ with proper white space and correct grammar when only one
+ duplicate mapping is encountered.
+
2025-08-02 G. Branden Robinson <[email protected]>
* tmac/groff_man.7.man.in: Un-deprecate `HP` macro. Retain
diff --git a/src/utils/afmtodit/afmtodit.pl b/src/utils/afmtodit/afmtodit.pl
index 602329fbf..75dd4c9de 100644
--- a/src/utils/afmtodit/afmtodit.pl
+++ b/src/utils/afmtodit/afmtodit.pl
@@ -728,7 +728,8 @@ for (my $i = 0; $i <= $#encoding; $i++) {
if ($opt_q && $duplicate_mappings_count) {
print STDERR "$program_name: $duplicate_mappings_count duplicate"
- . "mappings encountered";
+ . " mapping" . (($duplicate_mappings_count > 1) ? "s" : "" )
+ . " encountered\n";
}
sub conv {
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit