gbranden pushed a commit to branch master
in repository groff.
commit cbfd7b40379054c456bdeffb3004af5154503da0
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Sep 11 10:01:33 2025 -0500
[troff]: Asciify `\ ` as space, not ESCAPE_SPACE.
* src/roff/troff/node.cpp (space_char_hmotion_node::asciify): Asciify
a space character horizontal motion node (the kind produced by the
`\ ` unadjustable space escape sequence) as an ordinary space instead
of an `ESCAPE_SPACE` token. The latter is not necessary for the
`asciify` request's revised charter (and only known application to
date) of making diversion contents fit for use as device extension
command arguments.
---
ChangeLog | 10 ++++++++++
src/roff/troff/node.cpp | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 52f83cef7..206d53e33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2025-09-11 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/node.cpp (space_char_hmotion_node::asciify):
+ Asciify a space character horizontal motion node (the kind
+ produced by the `\ ` unadjustable space escape sequence) as an
+ ordinary space instead of an `ESCAPE_SPACE` token. The latter
+ is not necessary for the `asciify` request's revised charter
+ {and only known application to date} of making diversion
+ contents fit for use as device extension command arguments.
+
2025-09-11 G. Branden Robinson <[email protected]>
* src/roff/groff/tests/asciify-request-works.sh: Add test case
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 640d71ca6..1b6d3d57f 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -3989,7 +3989,7 @@ space_char_hmotion_node::space_char_hmotion_node(hunits
i, color *c,
void space_char_hmotion_node::asciify(macro *m)
{
- m->append(ESCAPE_SPACE);
+ m->append(' ');
delete this;
}
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit