gbranden pushed a commit to branch master
in repository groff.

commit 3b25bb3f339167ce278636bcd0c6300b46f79e1e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Sep 14 19:43:48 2025 -0500

    [troff]: "Asciify" extra space nodes as nothing.
    
    (Extra space nodes are produced by the `\x` escape sequence.)
    
    * src/roff/troff/node.h (class extra_space_node): Declare `asciify`
      member function, thus overriding base class.
    
    * src/roff/troff/node.cpp (extra_space_node::asciify): New member
      function simply does nothing.
---
 ChangeLog               | 7 +++++++
 src/roff/troff/node.cpp | 4 ++++
 src/roff/troff/node.h   | 1 +
 3 files changed, 12 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index e38ffbebf..7dcc07c71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-09-14  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/node.h (class extra_size_node): Declare
+       `asciify` member function, thus overriding base class.
+       * src/roff/troff/node.cpp (extra_size_node::asciify): New member
+       function simply does nothing.
+
 2025-09-14  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 5fd233793..b1a7da18d 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -4046,6 +4046,10 @@ void draw_node::asciify(macro *)
 {
 }
 
+void extra_size_node::asciify(macro *)
+{
+}
+
 void hyphen_inhibitor_node::asciify(macro *)
 {
 }
diff --git a/src/roff/troff/node.h b/src/roff/troff/node.h
index 6cd6c1856..b0b515fca 100644
--- a/src/roff/troff/node.h
+++ b/src/roff/troff/node.h
@@ -321,6 +321,7 @@ public:
   extra_size_node(vunits);
   extra_size_node(vunits, statem *, int);
   void set_vertical_size(vertical_size *);
+  void asciify(macro *);
   node *copy();
   bool is_same_as(node *);
   const char *type();

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

Reply via email to