gbranden pushed a commit to branch master
in repository groff.
commit 6863587f9ccfa3ff663658e55d468287fe1dc498
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Sep 14 19:27:13 2025 -0500
[troff]: "Asciify" draw nodes as nothing.
(Draw nodes are produced by the `\D` escape sequence.)
* src/roff/troff/node.h (class draw_node): Declare `asciify` member
function, thus overriding base class.
* src/roff/troff/node.cpp (draw_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 70a701054..d3c6d3ffc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-09-14 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/node.h (class draw_node): Declare `asciify`
+ member function, thus overriding base class.
+ * src/roff/troff/node.cpp (draw_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 ae41f0f23..5fd233793 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -4042,6 +4042,10 @@ void diverted_space_node::asciify(macro *)
{
}
+void draw_node::asciify(macro *)
+{
+}
+
void hyphen_inhibitor_node::asciify(macro *)
{
}
diff --git a/src/roff/troff/node.h b/src/roff/troff/node.h
index 02f475cf8..6cd6c1856 100644
--- a/src/roff/troff/node.h
+++ b/src/roff/troff/node.h
@@ -666,6 +666,7 @@ public:
~draw_node();
hunits width();
vunits vertical_width();
+ void asciify(macro *);
node *copy();
void tprint(troff_output_file *);
bool is_same_as(node *);
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit