gbranden pushed a commit to branch master
in repository groff.
commit 815dff62556b69a29375a3198f5f01bf6d16c3ef
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 24 14:05:10 2024 -0500
[troff]: Fix glitch in `pev` request output.
* src/roff/troff/env.cpp (environment::print_env): Fix glitch in
report of line number multiple when line numbering enabled.
Fixes:
$ printf '.nm 1 2 3\n.pev\n' | nroff 2>&1 | grep print
print line numbers every 2line2
---
ChangeLog | 5 +++++
src/roff/troff/env.cpp | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 014587de6..309d88e3a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-04-24 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.cpp (environment::print_env): Fix glitch in
+ report of line number multiple when line numbering enabled.
+
2024-04-24 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp (environment::dump_troff_state): Tweak
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 5ab1fda4b..1c6bb8f11 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3463,8 +3463,9 @@ void environment::print_env()
number_text_separation);
errprint(" line number indentation: %1 digit spaces\n",
line_number_indent);
- errprint(" print line numbers every %1line%1\n",
- line_number_multiple > 1 ? i_to_a(line_number_multiple) : "",
+ errprint(" print line numbers every %1 line%2\n",
+ line_number_multiple > 1
+ ? i_to_a(line_number_multiple) : "",
line_number_multiple > 1 ? "s" : "");
errprint(" lines not to enumerate: %1\n", no_number_count);
}
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit