gbranden pushed a commit to branch master
in repository groff.
commit 72548768f966a637b41145f7f0dee387f1196ee4
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Sep 5 14:28:47 2024 -0500
[troff]: Fix thinko in `pev` request output.
* src/roff/troff/env.cpp (font_size::dump_size_table): Fix thinko:
report scaling unit as 'z', not 's'.
Continues commit f574a96f58, 3 September.
---
ChangeLog | 9 +++++++++
src/roff/groff/tests/sizes-request-works.sh | 2 +-
src/roff/troff/env.cpp | 4 ++--
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c41f55a51..67ac7a197 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-09-05 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.cpp (font_size::dump_size_table): Fix
+ thinko: report scaling unit as 'z', not 's'.
+ * src/roff/groff/tests/sizes-request-works.sh: Update test
+ expectations.
+
+ Continues commit f574a96f58, 3 September.
+
2024-09-05 G. Branden Robinson <[email protected]>
* src/roff/nroff/nroff.sh: Update usage message, noting support
diff --git a/src/roff/groff/tests/sizes-request-works.sh
b/src/roff/groff/tests/sizes-request-works.sh
index b40c62a9d..0a4553e2d 100755
--- a/src/roff/groff/tests/sizes-request-works.sh
+++ b/src/roff/groff/tests/sizes-request-works.sh
@@ -29,6 +29,6 @@ input='.
echo "checking that 'sizes' request works" >&2
output=$(printf '%s\n' "$input" | "$groff" -T ps 2>&1)
echo "$output" | grep 'valid type size table'
-echo "$output" | grep -Fq '2s-20s, 36s'
+echo "$output" | grep -Fq '2z-20z, 36z'
# vim:set autoindent expandtab shiftwidth=2 tabstop=2 textwidth=72:
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 7f86b0586..bb4adfc1c 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -262,9 +262,9 @@ void font_size::dump_size_table()
if (need_comma)
errprint(", ");
if (lo == hi)
- errprint("%1s", lo);
+ errprint("%1z", lo);
else
- errprint("%1s-%2s", lo, hi);
+ errprint("%1z-%2z", lo, hi);
need_comma = true;
}
}
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit