gbranden pushed a commit to branch master
in repository groff.
commit c06c87847112a689787d4a0b7da7948e7b2428f7
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Aug 31 19:23:51 2025 -0500
[troff]: "Asciify" tag nodes as nothing.
...suppressing non-actionable diagnostic message. (Tag nodes are
produced by the undocumented `tag` request.)
* src/roff/troff/node.h (class tag_node): Declare `asciify` member
function, thus overriding base class.
* src/roff/troff/node.cpp (tag_node::asciify): New member function does
"nothing" in the same way that those of `line_start_node` and
`vertical_size_node`s do: delete the `this` object and return.
---
ChangeLog | 13 +++++++++++++
src/roff/troff/node.cpp | 5 +++++
src/roff/troff/node.h | 1 +
3 files changed, 19 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index ee6c35a02..39fe63e1c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2025-08-31 G. Branden Robinson <[email protected]>
+
+ [troff]: "Asciify" tag nodes as nothing, suppressing
+ non-actionable diagnostic message. (Tag nodes are produced by
+ the undocumented `tag` request.)
+
+ * src/roff/troff/node.h (class tag_node): Declare `asciify`
+ member function, thus overriding base class.
+ * src/roff/troff/node.cpp (tag_node::asciify): New member
+ function does "nothing" in the same way that those of
+ `line_start_node` and `vertical_size_node`s do: delete the
+ `this` object and return.
+
2025-08-31 G. Branden Robinson <[email protected]>
[troff]: "Asciify" transparent dummy nodes as nothing,
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 340c0f4b1..737316e0a 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -4028,6 +4028,11 @@ void transparent_dummy_node::asciify(macro *)
delete this;
}
+void tag_node::asciify(macro *)
+{
+ delete this;
+}
+
breakpoint *node::get_breakpoints(hunits /* width */, int /* nspaces */,
breakpoint *rest, bool /* is_inner */)
{
diff --git a/src/roff/troff/node.h b/src/roff/troff/node.h
index 165606da9..f92c4b940 100644
--- a/src/roff/troff/node.h
+++ b/src/roff/troff/node.h
@@ -630,6 +630,7 @@ public:
tag_node();
tag_node(string, int);
tag_node(string, statem *, int, int);
+ 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