gbranden pushed a commit to branch master
in repository groff.
commit 040bb7565ebda0daf8652bcd11a52bfb8d9f1d16
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Sep 15 10:11:16 2025 -0500
[troff]: "Asciify" `suppress` nodes as nothing.
(`suppress` nodes are produced by the `\O` output suppression escape
sequence.)
* src/roff/troff/node.h (class suppress_node): Declare `asciify` member
function, thus overriding base class.
* src/roff/troff/node.cpp (suppress_node::asciify): New member function
simply does nothing.
Test still fails at this commit; see the next.
---
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 533087a62..e43681bdf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-09-17 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/node.h (class suppress_node): Declare
+ `asciify` member function, thus overriding base class.
+ * src/roff/troff/node.cpp (suppress_node::asciify): New member
+ function simply does nothing.
+
2025-09-15 G. Branden Robinson <[email protected]>
* src/roff/troff/node.h (class overstrike_node): Declare
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 13af6229a..fa2806674 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -4062,6 +4062,10 @@ void overstrike_node::asciify(macro *)
{
}
+void suppress_node::asciify(macro *)
+{
+}
+
void vline_node::asciify(macro *)
{
}
diff --git a/src/roff/troff/node.h b/src/roff/troff/node.h
index 70ac4e742..90640975b 100644
--- a/src/roff/troff/node.h
+++ b/src/roff/troff/node.h
@@ -620,6 +620,7 @@ public:
suppress_node(symbol, char, int);
suppress_node(int, int, symbol, char, int, statem *, int);
suppress_node(int, int, symbol, char, int);
+ void asciify(macro *);
node *copy();
void tprint(troff_output_file *);
hunits width();
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit