gbranden pushed a commit to branch master
in repository groff.

commit 1fb72c15e678a41faffed6e3888e5818e50becb4
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Dec 3 00:10:29 2025 -0600

    [troff]: Improve description of node tokens.
    
    * src/roff/troff/input.cpp (token::description): Describe a `TOKEN_NODE`
      explicitly as a "token", because it still is one.
    
    Continues commit dd7bf97938, 23 November.
---
 ChangeLog                | 5 +++++
 src/roff/troff/input.cpp | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index b8e544f06..ef5b06939 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-12-03  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (token::description): Describe a
+       `TOKEN_NODE` explicitly as a "token", because it still is one.
+
 2025-12-03  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (token::description): Return the node
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 49ac069fc..a32b651ef 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -2986,7 +2986,8 @@ const char *token::description()
       static char nodebuf[bufsz];
       (void) strcpy(nodebuf, "an undescribed node");
       describe_node(nodebuf, bufsz);
-      return nodebuf;
+      (void) snprintf(buf, bufsz, "%s token", nodebuf);
+      return buf;
     }
   case TOKEN_INDEXED_CHAR:
     (void) snprintf(buf, maxstr, "indexed character %d",

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to